We’re introducing Meta accounts in August 2022: a new way to log into VR devices that doesn’t require a Facebook account. Learn more

WHEN PROJECTILE HITS PLAYER

Event executes when a projectile, from the launcher gizmo, hits a player.

Appearance in Composition Pane
Description

Event executes when a projectile, from the launcher gizmo, hits a player. Event is received on the projectile launcher gizmo with four parameters. Player, indicates who was hit. Pos, is where the projectile hit. Normal is a direction vector, which indicates which side of the player was hit. And head, returns boolean true if the player’s head was hit.
Parameters

player, vector, vector, boolean

Example 1: Give points when a projectile hits a player

When the projectile hits a player, give the opponent 2 points if it hits their head and 1 point if it hits their torso. Then respawn the player that was hit.

Next Up