User Tools

Site Tools


set_player_interaction_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_interaction_locked [2017/04/14 15:08] justinset_player_interaction_locked [2021/04/21 18:34] (current) justin
Line 2: Line 2:
 ---- ----
  
-Locks or unlocks the player's ability to interact with objects or speak to characters in the scene.+Locks or unlocks the player's ability to interact with [[object|objects]] or speak to [[character|characters]] in the scene.
  
 +====Signature:====
 <code python> <code python>
 set_player_interaction_locked(is_locked) set_player_interaction_locked(is_locked)
Line 12: Line 13:
  
 ====Example:==== ====Example:====
-<code python+<code bauxite
-set_player_interaction_locked(true)+set_player_interaction_locked(true);
 </code> </code>
-//Results:// The player is no longer able to interact with any objects or characters until their interaction is re-enabled.+//Results:// The player is no longer able to interact with any [[object|objects]] or [[character|characters]] until their interaction is re-enabled.
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
-Use the **Lock/Unlock Player Interaction** function to prevent the player from interacting with objects during a cutscene. This will typically be used in conjunction with [[set_player_movement_locked|Lock/Unlock Player Movement]].+Use the **Lock/Unlock Player Interaction** function to prevent the player from interacting with [[object|objects]] during a cutscene. This will typically be used in conjunction with [[set_player_movement_locked|Lock/Unlock Player Movement]].
 </WRAP> </WRAP>
  
set_player_interaction_locked.1492207730.txt.gz · Last modified: 2017/04/14 15:08 by justin