Controllable & Not Controllable Player
Last updated
Last updated
The player is controllable when Controllable in PlayerStats.cs is true. If it is false, you no longer will be able to perform any player action. Note that you can access the variable by using its static accessor PlayerStats.Controllable.
Refer to
Controllable ( bool ) / Public get / Private set
Returns true if the player can be controlled.
Returns the value of "controllable"
Grant Control()
Force Controllable to be true.
Lose Control()
Force Controllable to be false.
CheckIfCanGrantControl()
Checks if the game is paused before providing control to the player.
Recommended usage over GrantControl to avoid issues.