During your game you may want to completely disable input to prevent the user from having control. Use cases for this include during a pause menu, a dialogue conversation, or a cut scene. The user input can easily be disabled by sending the following event:
EventHandler.ExecuteEvent(character, "OnAllowGameplayInput", allow);
The following parameters are used:
Specifies which GameObject that you want to set the input for.
The name of the event. This should not be changed.
Specifies if the input should be enabled (true) or disabled (false).
<- Detect Headshots