User Tools

Site Tools


set_player_movement_locked

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
set_player_movement_locked [2017/04/14 15:15] justinset_player_movement_locked [2021/04/21 18:35] (current) justin
Line 4: Line 4:
 Locks or unlocks the player's ability to walk around. This also affects strafing and turning in first-person view.  Locks or unlocks the player's ability to walk around. This also affects strafing and turning in first-person view. 
  
 +====Signature:====
 <code python> <code python>
 set_player_movement_locked(is_locked) set_player_movement_locked(is_locked)
Line 16: Line 17:
  
 ====Example:==== ====Example:====
-<code python+<code bauxite
-set_player_movement_locked(true)+set_player_movement_locked(true);
 </code> </code>
 //Results:// The player is no longer able to move around the scene until their movement is re-enabled. //Results:// The player is no longer able to move around the scene until their movement is re-enabled.
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
-Use the **Lock/Unlock Player Movement** function to prevent the player from moving during a cutscene. This will typically be used in conjunction with [[set_player_interaction_locked|Lock/Unlock Player Interaction]].+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]].
 </WRAP> </WRAP>
  
set_player_movement_locked.1492208107.txt.gz · Last modified: 2017/04/14 15:15 by justin