Definition
LockCharacterController()
Description
This function locks physics character controller. In this case, you cannot move the main game character or the camera attached to it using the keyboard or mouse.
Example
function OnTriggerEnter(otherActorName) LockCharacterController() end function OnTriggerStay(otherActorName) end function OnTriggerExit(otherActorName) end
Assume that the above script is attached to a trigger named “trigger1”. Whenever the main character or a prefab instance that has dynamic physics is entered into this trigger, the main character will be locked.
LockCharacterController