# Source URL: https://dev.epicgames.com/community/learning/tutorials/DELe/fortnite-uefn-sidekick-tutorial-mascotas-companeros
# Local doc: epic-docs/community/learning/tutorials/DELe/fortnite-uefn-sidekick-tutorial-mascotas-companeros.md
using { /Verse.org/SceneGraph }
using { /Verse.org/Simulation }
using { /Fortnite.com/AI }
using { /Fortnite.com/Characters }
using { /Fortnite.com/Devices }
using { /UnrealEngine.com/Temporary/SpatialMath }
using { /Fortnite.com/Playspaces }
ConexionMascota := class(creative_device):
@editable Boton : button_device = button_device{}
@editable BotonDejar : button_device = button_device{}
@editable BotonCosmetico : button_device = button_device{}
@editable SideKick : npc_spawner_device = npc_spawner_device{}
#@editable NPCEnemy : npc_spawner_device = npc_spawner_device{}
@editable DistanciaSeguimiento : float = 300.0
var TieneMascota : [fort_character]logic = map{}
var NPCAgent : ?agent = false
OnBegin<override>()<suspends>:void=
Verse Library
verse
01 Snippet
Manages NPC sidekick companions via button interactions. Handles spawning, following logic, and cosmetic updates.
extracted-snippets/community/learning/tutorials/DELe/fortnite-uefn-sidekick-tutorial-mascotas-companeros/01-snippet.verse
Sign in free to read the full source 🌴
This Verse Library file is members-only. Create a free account to view the complete source and download the .verse file.