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.
14 lines
440 B
14 lines
440 B
5 months ago
|
ScriptName defaultCounterIncrementOnDeath extends Actor
|
||
|
{On death, casts the linkedref to a defaultCounter and increments it.}
|
||
|
|
||
|
import game
|
||
|
import debug
|
||
|
|
||
|
Keyword property counterLinkedRefName Auto
|
||
|
{The name of the LinkedRef to the Counter. Defaults to the unnamed linkedref.}
|
||
|
|
||
|
Function onDeath(Actor akKiller)
|
||
|
; ;Debug.Trace("onDeath() Event Received")
|
||
|
(Self.GetLinkedRef(counterLinkedRefName) As defaultCounter).Increment()
|
||
|
EndFunction
|
||
|
|