User Tools

Site Tools


set_player_interaction_locked

This is an old revision of the document!


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.1587856439.txt.gz · Last modified: 2020/04/25 16:13 by justin