Skip to content

SpawnNPCCombatAction ​

Inherits: CombatAction < Resource

Spawns an NPC during combat at a specific position

Properties ​

intentity_id0
Vector3spawn_positionVector3.ZERO
booluse_entity_positionfalse
Vector3position_offsetVector3.ZERO
boolcopy_targettrue

Property descriptions ​

int entity_id = 0 ​

The NPC to spawn.

Vector3 spawn_position = Vector3.ZERO ​

Where the NPC appears.

bool use_entity_position = false ​

Use entity's position instead of spawn_position

Vector3 position_offset = Vector3.ZERO ​

Offset from the chosen position

bool copy_target = true ​

Should spawned NPC target the same entity