Definition
bool IsCharacterControllerLocked()
Description
This function determines whether the character controller is locked or not.
Return Value
If character controller is locked, it returns true, otherwise it returns false.
Example 1
locked = false message = "" function Init() locked = IsCharacterControllerLocked() if locked then message = string.format("\nCharacter controller is locked") else message = string.format("\nCharacter controller isn't locked") end PrintConsole(message) end function Update() end
First, we determines whether the character controller is locked or not. Then we display its lock status in the console using the PrintConsole function.
IsCharacterControllerLocked