Skip to content

Pet ​

Inherits: Entity < CharacterBody3D

Pet represents a summoned creature or Player controlled by an AI. It extends the base Entity class with features specific to temporary summoned entities that follow their creator and support them in combat. Key features:

Description ​

  • Links to a summoner entity (player, companion, etc.)
  • Can follow the summoner automatically
  • Has limited duration or lifespan
  • Shares targeting with the summoner
  • Special summon and despawn effects

Variables ​

Entitysummoner
Effectcreating_effect
boolfollow_stancefalse
Timersummon_timer

Methods ​

voidinitialize_entity( system_hub: GameHost.SystemHub )
voidsummon_timer_timeout()
voidsummon_finished()
voidentity_death( announce: bool = true )

Variable descriptions ​

Entity summoner ​

The entity that summoned/owns this pet

Effect creating_effect ​

The effect that created this pet

bool follow_stance = false ​

Whether the pet is set to follow its owner

Timer summon_timer ​

Timer for the initial summon animation/effect

Method descriptions ​

void initialize_entity( system_hub: GameHost.SystemHub ) ​

Called when the node enters the scene tree

void summon_timer_timeout() ​

Called when the summon timer completes

void summon_finished() ​

Handles pet despawn/removal when effect ends or summoner dies

void entity_death( announce: bool = true ) ​

Override of the base entity_death method to handle pet-specific death