But the syntax has me a bit flummoxed.
Here's what I have so far:
Spoiler
Scriptname LBGDisablePlayerControls extends Actor
Bool Property DisableControls = TRUE Auto
{Should we lock the player in-place? Default = TRUE}
Bool Property doOnce = TRUE auto
{Shall we do this only once? Default = TRUE}
auto STATE waitingForPlayer
EVENT onTriggerEnter(objectReference triggerRef)
if doOnce
gotoState("hasBeenTriggered")
endif
if DisableControls == TRUE
Game.DisablePlayerControls(true, true, true, false, true, false, true)
endif
endEvent
endSTATE
STATE hasBeenTriggered
; this is an empty state.
endSTATE
Scriptname LBGDisablePlayerControls extends Actor
Bool Property DisableControls = TRUE Auto
{Should we lock the player in-place? Default = TRUE}
Bool Property doOnce = TRUE auto
{Shall we do this only once? Default = TRUE}
auto STATE waitingForPlayer
EVENT onTriggerEnter(objectReference triggerRef)
if doOnce
gotoState("hasBeenTriggered")
endif
if DisableControls == TRUE
Game.DisablePlayerControls(true, true, true, false, true, false, true)
endif
endEvent
endSTATE
STATE hasBeenTriggered
; this is an empty state.
endSTATE
Thanks for any help in debugging this
