2021-10-05 22:15:58 +00:00
|
|
|
Scriptname _00E_PlayerControlsSwitchActivation extends ObjectReference
|
|
|
|
|
|
|
|
Event OnTriggerEnter(ObjectReference akactionref)
|
2024-01-10 14:08:24 +00:00
|
|
|
if akactionref == game.getplayer() && QuestID.GetCurrentStageID() == StageValue
|
2021-10-05 22:15:58 +00:00
|
|
|
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)
|
2024-01-10 14:08:24 +00:00
|
|
|
if akactionref == game.getplayer() && QuestID.GetCurrentStageID() == StageValue || QuestID.GetCurrentStageID() == StateValueTwo
|
2021-10-05 22:15:58 +00:00
|
|
|
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
|