======Lock/Unlock Player Movement====== ---- Locks or unlocks the player's ability to walk around. This also affects strafing and turning in first-person view. ====Signature:==== set_player_movement_locked(is_locked) ^Argument^Description^Type^Required^ |is_locked|State of player movement.|[[Boolean]]|Yes| Similar to [[Lock Camera]], this function needs to be called prior to scripting the player's movement with [[Move Player]] or [[Move Character]] to prevent any player interference. ====Example:==== set_player_movement_locked(true); //Results:// The player is no longer able to move around the scene until their movement is re-enabled. Use the **Lock/Unlock Player Movement** function to prevent the player from manually moving during a cutscene. This will typically be used in conjunction with [[set_player_interaction_locked|Lock/Unlock Player Interaction]]. ---- ====Editor Node:==== {{:wiki:set_player_movement_locked_node.png?nolink|}} ~~NOTOC~~