Skip to content

SummonInteractableEffect ​

Inherits: Effect < DatabaseResource < Resource

Summons an interactable object for the user

Properties ​

intinteractable_id0
Stringdisplay_name_override"":
boolspawn_at_targetfalse
floatposition_variance2.0
Vector3position_offsetVector3.ZERO
boolrandom_rotationtrue

Methods ​

voidspecific_effect_logic( effect_instance: EffectInstance )
voidon_apply_finished( effect_instance: EffectInstance )
voidcreate_summoned_interactable( effect_instance: EffectInstance )
Stringget_category()
Stringget_simple_description()
Stringget_detailed_description()
boolis_one_off_application()

Property descriptions ​

Interactable

int interactable_id = 0 ​

ID of the interactable to spawn

String display_name_override = "": ​

Optional display name override for the spawned interactable

Positioning

bool spawn_at_target = false ​

Spawn at target position instead of originator

float position_variance = 2.0 ​

Random variance radius (meters) around spawn position

Vector3 position_offset = Vector3.ZERO ​

Fixed offset from spawn position

Rotation

bool random_rotation = true ​

Apply random Y rotation

Method descriptions ​

void specific_effect_logic( effect_instance: EffectInstance ) ​

What the effect does to its target when it is applied.

void on_apply_finished( effect_instance: EffectInstance ) ​

Called when the effect ends: takes back what it did.

void create_summoned_interactable( effect_instance: EffectInstance ) ​

Makes the object in the world for the user.

String get_category() ​

The group of the effect in the editor.

String get_simple_description() ​

A short text about what the effect does.

String get_detailed_description() ​

A longer text about what the effect does, with the name of the object.

bool is_one_off_application() ​

What this effect does it does once, when it is applied: a loaded save does not do it again