Meta accounts are here: you can create a Meta account to log into VR devices. Learn more

WHEN TRIGGER IS ENTERED BY PLAYER

Event that runs when a player enters the trigger gizmo.

Appearance in Composition Pane
Description

Commands below the when trigger is entered by player line will execute when a player enters the trigger the script is attached to. The trigger must be configured to detect players.
Parameters

player
The player who entered the trigger.



Example 1: Respawn trigger

This script is critical for respawning and teleporting players. It’s good practice to place a trigger like this below your world in case a player glitches out of a defined area.
Example 2: Set VOIP

This script enables a player to talk to everyone in the world by giving the player Global voice settings.

Next Up