Enderal SE https://mod.pub/enderal-se/38-enderal-se
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.
22 lines
885 B
22 lines
885 B
3 years ago
|
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
|