on controls_off

From Arx Libertatis Wiki
Revision as of 15:07, 16 June 2022 by Ds (talk | contribs) (Created page with "{{ScriptEventPage |sender=the caller |target=all NPCs |trigger=when player input is disabled using the {{Command|setplayercontrols|off}} command |async=1 }} This event is not sent when player input was already disabled before calling the {{Command|setplayercontrols}} command. Enabling input sends the {{Event|controls_on}} event instead.")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The controls_off script event is sent asynchronously by the caller to all NPCs when player input is disabled using the setplayercontrols off command. This event never has any parameters.

This event is not sent when player input was already disabled before calling the setplayercontrols command. Enabling input sends the controls_on event instead.