2023-12-04 15:02:58 +00:00
|
|
|
scriptName dweSpiderCenturionPipeScript extends ObjectReference
|
|
|
|
|
|
|
|
import debug
|
|
|
|
import utility
|
|
|
|
|
|
|
|
;****************************************
|
|
|
|
|
|
|
|
auto State Listening
|
|
|
|
|
|
|
|
Event onActivate(objectReference triggerRef)
|
|
|
|
Actor myActor = triggerRef as Actor
|
2023-12-06 15:31:10 +00:00
|
|
|
;USKP 2.0.1 - Added check to make sure the actor exists.
|
|
|
|
if (myActor && myActor.getState() != "Waiting")
|
2023-12-04 15:02:58 +00:00
|
|
|
gotoState("done")
|
|
|
|
playAnimation("exit")
|
|
|
|
endif
|
|
|
|
endEvent
|
|
|
|
|
|
|
|
endState
|
|
|
|
|
|
|
|
;****************************************
|
|
|
|
|
|
|
|
State done
|
|
|
|
;do nothing
|
|
|
|
endState
|
|
|
|
|
|
|
|
;****************************************
|