set_player_interaction_locked

Lock/Unlock Player Interaction


Locks or unlocks the player's ability to interact with objects or speak to characters in the scene.

Signature:

set_player_interaction_locked(is_locked)
ArgumentDescriptionTypeRequired
is_lockedState of player interaction.BooleanYes

Example:

set_player_interaction_locked(true);

Results: The player is no longer able to interact with any objects or characters until their interaction is re-enabled.

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 Lock/Unlock Player Movement.


Editor Node:

set_player_interaction_locked.txt · Last modified: 2021/04/21 18:34 by justin