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.
 
 
 

39 lines
584 B

Scriptname _00E_TreasureMarkerScript extends ObjectReference
Event OnInit()
BlockActivation()
endEvent
Auto State Waiting
Event OnActivate (ObjectReference akActionRef)
if akActionRef != Game.GetForm(0x14)
return
endif
GotoState("PlayerDigging")
EndEvent
EndState
State PlayerDigging
Event OnBeginState()
if _00E_PlayerFunctions.GetDigControl().Dig()
BlockActivation(false)
GoToState("DoNothing")
Activate(Game.GetForm(0x14) as Actor)
else
GoToState("Waiting")
endif
EndEvent
EndState
State DoNothing
; Nothing to do here
EndState