enderalse/source/scripts/_00e_mq00tempelkonstrukttriggbox.psc

60 lines
1.6 KiB
Plaintext
Raw Normal View History

Scriptname _00E_MQ00TempelKonstruktTriggBox extends ObjectReference
Quest Property _00E_MQ00TempelScene auto
ObjectReference Property MQ00TempleSceneMarkerPlayerTravelMarker01 auto
Idle Property IdleWalkingCameraEnd Auto
Idle Property IdleWalkingCameraStart Auto
MusicType Property _00E_Event01Single Auto
int DoOnce
Idle Property WakeUp Auto
ImageSpaceModifier Property _00E_MQ00TempleIMSMO01 Auto
ImageSpaceModifier Property _00E_MQ00TempleIMSMOState Auto
OBJECTREFERENCE Property MQ00RefMagicBlue Auto
Actor Property PlayerREF Auto
OBJECTREFERENCE Property MQ00TempleSceneMarkerPlayer01 Auto
Event OnTriggerEnter(ObjectReference akActionRef)
if(akActionRef == Game.GetPlayer())
if ( DoOnce == 0 )
Game.DisablePlayerControls(ablooking = true, abCamSwitch = true)
_00E_Event01Single.Add()
Game.ForceThirdPerson()
Game.SetPlayerAIDriven(true)
2024-01-10 14:08:24 +00:00
_00E_MQ00TempelScene.SetCurrentStageID(10)
Game.GetPlayer().EvaluatePackage()
Utility.Wait(0.5)
;Game.GetPlayer().PlayIdle(IdleWalkingCameraStart)
Game.GetPlayer().EvaluatePackage()
; DoOnce == 1
; If ( Game.GetPlayer().GetDistance(MQ00TempleSceneMarkerPlayerTravelMarker01) < 500 )
; DoOnce == 1
; Else
; DoOnce == 1
; endif
endif
2024-01-10 14:08:24 +00:00
if ( _00E_MQ00TempelScene.GetCurrentStageID() == 20 )
Game.GetPlayer().PlayIdle(IdleWalkingCameraEnd)
Game.DisablePlayerControls(ablooking = true, abCamSwitch = true)
Game.ForceFirstPerson()
_00E_MQ00TempleIMSMO01.apply()
Utility.Wait(4.5)
_00E_MQ00TempleIMSMOState.apply()
MQ00RefMagicBlue.enable()
PlayerRef.MoveTo(MQ00TempleSceneMarkerPlayer01)
Game.GetPlayer().PlayIdle(WakeUp)
endif
endif
EndEvent