enderalse/source/scripts/_00e_playercontrolsswitchactivation.psc

22 lines
885 B
Plaintext
Raw Normal View History

Scriptname _00E_PlayerControlsSwitchActivation extends ObjectReference
Event OnTriggerEnter(ObjectReference akactionref)
if akactionref == game.getplayer() && QuestID.getstage() == StageValue
Game.EnablePlayerControls(abMovement = true,abFighting = false,abCamSwitch = false,abLooking = true,abSneaking = false,abMenu = false,abActivate = true,abJournalTabs = true,aiDisablePOVType = 0)
endif
EndEvent
Event OnTriggerLeave(ObjectReference akactionref)
if akactionref == game.getplayer() && QuestID.getstage() == StageValue || QuestID.getstage() == StateValueTwo
Game.DisablePlayerControls(abMovement = false, abFighting = true, abCamSwitch = true, abLooking = false, abSneaking = true,abMenu = true, abActivate = true, abJournalTabs = true, aiDisablePOVType = 0)
endif
EndEvent
Quest Property QuestID Auto
Int Property StageValue Auto
Int Property StateValueTwo Auto