enderalse/source/scripts/_00e_treasuremarkerscript.psc

40 lines
584 B
Plaintext
Raw Normal View History

Scriptname _00E_TreasureMarkerScript extends ObjectReference
2024-01-25 01:39:16 +00:00
Event OnInit()
2024-02-05 00:33:58 +00:00
BlockActivation()
2024-01-25 01:39:16 +00:00
endEvent
Auto State Waiting
Event OnActivate (ObjectReference akActionRef)
2024-02-05 00:33:58 +00:00
if akActionRef != Game.GetForm(0x14)
2024-01-25 01:39:16 +00:00
return
endif
2024-02-05 00:33:58 +00:00
GotoState("PlayerDigging")
EndEvent
EndState
2024-02-05 00:33:58 +00:00
State PlayerDigging
Event OnBeginState()
2024-02-05 00:33:58 +00:00
if _00E_PlayerFunctions.GetDigControl().Dig()
BlockActivation(false)
GoToState("DoNothing")
Activate(Game.GetForm(0x14) as Actor)
else
GoToState("Waiting")
endif
EndEvent
EndState
2024-02-05 00:33:58 +00:00
State DoNothing
; Nothing to do here
EndState