Enderal SE https://mod.pub/enderal-se/38-enderal-se
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
392 B
19 lines
392 B
5 months ago
|
scriptName defaultActivateLinkedRefOnceOnDeath extends Actor
|
||
|
{
|
||
|
- Activate the specified linked ref when this actor dies.
|
||
|
}
|
||
|
|
||
|
ObjectReference myLinkedRef
|
||
|
Keyword Property linkedRefKeyword Auto
|
||
|
|
||
|
Auto State PreActivation
|
||
|
Event OnDeath(Actor killer)
|
||
|
Self.GetLinkedRef(LinkedRefKeyword).Activate(Self)
|
||
|
gotoState("PostActivation")
|
||
|
EndEvent
|
||
|
EndState
|
||
|
|
||
|
STATE PostActivation
|
||
|
;Do nothing
|
||
|
EndState
|