enderalse/source/scripts/_00e_treasuremarkerscript.psc

40 lines
584 B
Plaintext
Raw Normal View History

Scriptname _00E_TreasureMarkerScript extends ObjectReference
2024-01-25 02:39:16 +01:00
Event OnInit()
2024-02-05 01:33:58 +01:00
BlockActivation()
2024-01-25 02:39:16 +01:00
endEvent
Auto State Waiting
Event OnActivate (ObjectReference akActionRef)
2024-02-05 01:33:58 +01:00
if akActionRef != Game.GetForm(0x14)
2024-01-25 02:39:16 +01:00
return
endif
2024-02-05 01:33:58 +01:00
GotoState("PlayerDigging")
EndEvent
EndState
2024-02-05 01:33:58 +01:00
State PlayerDigging
Event OnBeginState()
2024-02-05 01:33:58 +01: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 01:33:58 +01:00
State DoNothing
; Nothing to do here
EndState