18 lines
592 B
Plaintext
18 lines
592 B
Plaintext
Scriptname defaultForceEvaluatePackageTrigger extends ObjectReference
|
|
{Forces the actor and/or alias to evaluate its package after a brief delay.}
|
|
|
|
ObjectReference property actorToForce Auto
|
|
ReferenceAlias property aliasToForce Auto
|
|
|
|
EVENT OnTriggerEnter(objectReference actronaut)
|
|
Utility.Wait(0.1)
|
|
if (actorToForce != None)
|
|
(actorToForce As Actor).EvaluatePackage()
|
|
EndIf
|
|
if (aliasToForce != None)
|
|
if( aliasToForce.GetActorReference() != None ) ;USKP 2.0 - Ya just needed one more sanity check guys :P
|
|
aliasToForce.GetActorReference().EvaluatePackage()
|
|
EndIf
|
|
EndIf
|
|
endEVENT
|