2021-10-05 22:15:58 +00:00
|
|
|
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
|
|
|
|
|
2021-10-05 22:15:58 +00:00
|
|
|
Auto State Waiting
|
|
|
|
|
|
|
|
Event OnActivate (ObjectReference akActionRef)
|
2024-01-26 01:15:22 +00:00
|
|
|
|
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")
|
2021-10-05 22:15:58 +00:00
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
EndState
|
|
|
|
|
2024-02-05 00:33:58 +00:00
|
|
|
State PlayerDigging
|
2021-10-05 22:15:58 +00:00
|
|
|
|
|
|
|
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
|
2021-10-05 22:15:58 +00:00
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
EndState
|
|
|
|
|
2024-02-05 00:33:58 +00:00
|
|
|
State DoNothing
|
|
|
|
; Nothing to do here
|
|
|
|
EndState
|