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 revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
set_player_movement_locked [2017/04/14 15:08]
justin
set_player_movement_locked [2017/04/14 15:17]
justin
Line 2: Line 2:
 ---- ----
  
-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. 
  
 <code python> <code python>
Line 10: Line 10:
 ^Argument^Description^Type^Required^ ^Argument^Description^Type^Required^
 |is_locked|State of player movement.|[[Boolean]]|Yes| |is_locked|State of player movement.|[[Boolean]]|Yes|
 +
 +<WRAP center round info 100%>
 +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.
 +</​WRAP>​
  
 ====Example:​==== ====Example:​====
Line 18: Line 22:
  
 <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.txt ยท Last modified: 2018/03/16 09:45 by justin