Skip to content

SpawnInteractableCombatAction ​

Inherits: CombatAction < Resource

Spawns an interactable during combat at a specific position

Properties ​

intinteractable_id0
Stringdisplay_name""
Vector3spawn_positionVector3.ZERO
booluse_entity_positionfalse
Vector3position_offsetVector3.ZERO
floatposition_variance0.0
Vector3spawn_rotationVector3.ZERO
booluse_entity_rotationfalse
Vector3rotation_offsetVector3.ZERO
floatrotation_variance0.0
boolface_targetfalse
boolset_as_summonertrue
boolcopy_target_for_trapstrue

Property descriptions ​

Interactable Selection

int interactable_id = 0 ​

Choose spawn method: true for category/scene, false for type

String display_name = "" ​

Display name for the spawned interactable (optional)

Positioning

Vector3 spawn_position = Vector3.ZERO ​

Where the object appears.

bool use_entity_position = false ​

Use entity's position instead of spawn_position

Vector3 position_offset = Vector3.ZERO ​

Offset from the chosen position

float position_variance = 0.0 ​

Add random position variance (radius in meters)

Rotation

Vector3 spawn_rotation = Vector3.ZERO ​

Euler angles in degrees

bool use_entity_rotation = false ​

Use entity's rotation instead of spawn_rotation

Vector3 rotation_offset = Vector3.ZERO ​

Additional rotation offset in degrees

float rotation_variance = 0.0 ​

Add random rotation variance (degrees)

bool face_target = false ​

Face towards entity's target (overrides other rotation settings for applicable interactables)

Behavior

bool set_as_summoner = true ​

Set the spawning entity as the summoner of the interactable

bool copy_target_for_traps = true ​

For traps: should they target the entity's current target?