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

Next revision
Previous revision
Last revisionBoth sides next revision
set_player_movement_locked [2017/04/14 14:41] – external edit 127.0.0.1set_player_movement_locked [2020/04/25 16:14] justin
Line 2: Line 2:
 ---- ----
  
-Locks or unlocks the player's ability to walk or turn.+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(true)+set_player_movement_locked(is_locked)
 </code> </code>
  
 ^Argument^Description^Type^Required^ ^Argument^Description^Type^Required^
-|true|Description.|[[String]]|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:====
-<code python>+<code bauxite>
 set_player_movement_locked(true) set_player_movement_locked(true)
 </code> </code>
-//Results://+//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 ...+Use the **Lock/Unlock Player Movement** function to prevent the player from manually moving during a cutsceneThis will typically be used in conjunction with [[set_player_interaction_locked|Lock/Unlock Player Interaction]].
 </WRAP> </WRAP>
  
Line 30: Line 35:
  
 <WRAP half column> <WRAP half column>
-====Visual Demo:==== 
-{{:wiki:set_player_movement_locked_demo.gif?nolink|}} 
 </WRAP> </WRAP>
 </WRAP> </WRAP>
set_player_movement_locked.txt · Last modified: 2021/04/21 18:35 by justin