on controls_on

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 enabled using the {{Command|setplayercontrols|on}} command |async=1 }} This event is not sent when player input was already enabled before calling the {{Command|setplayercontrols}} command. Disabling input sends the {{Event|controls_off}} event instead.")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

This event is not sent when player input was already enabled before calling the setplayercontrols command. Disabling input sends the controls_off event instead.