56 lines
1.5 KiB
Plaintext
56 lines
1.5 KiB
Plaintext
|
ScriptName DCVR_AA_PhotoboothScript Extends ObjectReference
|
||
|
|
||
|
;-- Variables ---------------------------------------
|
||
|
|
||
|
;-- Properties --------------------------------------
|
||
|
ObjectReference Property BlueMarker Auto
|
||
|
Message Property BoothChoice Auto
|
||
|
Message Property BoothManual Auto
|
||
|
Message Property BoothMenu Auto
|
||
|
ObjectReference Property GreyMarker Auto
|
||
|
ObjectReference Property PosMarker Auto
|
||
|
|
||
|
;-- Functions ---------------------------------------
|
||
|
|
||
|
; Skipped compiler generated GetState
|
||
|
|
||
|
; Skipped compiler generated GotoState
|
||
|
|
||
|
Event OnActivate(ObjectReference akActionRef)
|
||
|
Self.BoothInit()
|
||
|
EndEvent
|
||
|
|
||
|
Function BoothInit()
|
||
|
Int Selection = BoothMenu.Show(0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
|
||
|
If Selection == 0
|
||
|
Self.PhotoBooth()
|
||
|
ElseIf Selection == 1
|
||
|
Self.BoothSetup()
|
||
|
Self.BoothInit()
|
||
|
ElseIf Selection == 2
|
||
|
BoothManual.Show(0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
|
||
|
Self.BoothInit()
|
||
|
EndIf
|
||
|
EndFunction
|
||
|
|
||
|
Function PhotoBooth()
|
||
|
Actor PlayerRef = Game.GetPlayer()
|
||
|
PlayerRef.UnequipAll()
|
||
|
PlayerRef.MoveTo(PosMarker, 0.0, 0.0, 0.0, True)
|
||
|
Game.ShowRaceMenu()
|
||
|
EndFunction
|
||
|
|
||
|
Function BoothSetup()
|
||
|
Int Choice = BoothChoice.Show(0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
|
||
|
If Choice == 0
|
||
|
GreyMarker.DisableNoWait(False)
|
||
|
BlueMarker.DisableNoWait(False)
|
||
|
ElseIf Choice == 1
|
||
|
GreyMarker.EnableNoWait(False)
|
||
|
BlueMarker.DisableNoWait(False)
|
||
|
ElseIf Choice == 2
|
||
|
GreyMarker.DisableNoWait(False)
|
||
|
BlueMarker.EnableNoWait(False)
|
||
|
EndIf
|
||
|
EndFunction
|