4
Fork 0
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.
 
 
 

37 lines
949 B

Scriptname _00E_ShovelingMarker extends ObjectReference
{Plays a shoveling animation when activated}
Import Utility
Event OnActivate(ObjectReference akActionRef)
if akActionRef != Game.GetPlayer()
Digger = akActionRef as Actor
; Digger.PathToReference(Self, 1.0)
StartDiggingAnimation(Digger)
Return
EndIf
EndEvent
;=====================================================================================
; FUNCTIONS
;=====================================================================================
Function StartDiggingAnimation(Actor DiggingActor)
Debug.SendAnimationEvent(DiggingActor, "IdleSmelterEnter")
Wait(15.0)
StopDiggingAnimation(DiggingActor)
Return
EndFunction
Function StopDiggingAnimation(Actor DiggingActor)
Debug.SendAnimationEvent(DiggingActor, "IdleForceDefaultState")
(DiggingActor as Actor).EvaluatePackage()
Wait(2)
Return
EndFunction
Actor Digger