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.
 
 
 

49 lines
1.2 KiB

Scriptname _00E_MQ11c_MinigameShootingButton extends ObjectReference
{Controls the behaviour of the button}
import Utility
;-----------------------------AUTO STATE-------------------
Auto State WaitingForActivation
Event OnCellAttach()
objSelf = self as ObjectReference
playAnimation("Open")
EndEvent
Event OnActivate(ObjectReference akActionRef)
if akActionRef == (Ryneus.GetActorReference()) && (MQ11c.GetCurrentStageID() == 150)
GoToState("Waiting")
;playAnimationAndWait("Trigger01","done")
if QSTAstrolabeButtonPressX
QSTAstrolabeButtonPressX.play(objSelf)
endif
SphereBoxDoor.Activate(Self)
Wait(2)
Sphere.Activate(Self)
ElseIf akActionRef == (Ryneus.GetActorReference()) && (MQ11c.GetCurrentStageID() == 170)
Wait(2)
Sphere.Activate(Self)
Else
;Debug.Notification(NothingHappens)
EndIf
EndEvent
EndState
;------------------------WAITING STATE---------------------
state Waiting
endState
ObjectReference Property SphereBoxDoor Auto
ObjectReference Property Sphere Auto
;String Property NothingHappens Auto
Quest Property MQ11c Auto
sound property QSTAstrolabeButtonPressX auto
objectReference property objSelf auto hidden
ReferenceAlias Property Ryneus Auto