推出 Meta 帐户:创建 Meta 帐户,轻松登录 VR 设备。 详细了解

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