Workshop.codes
Create

Redirect Projectile Last updated April 28, 2026

Description

Instantly changes the direction of a projectile in flight, reassigning its velocity vector to a new facing direction while preserving its speed. Can optionally reassign the projectile's owner, causing it to deal damage on behalf of a different player.

Snippet

Redirect Projectile(Last Created Projectile, Direction Towards(Position Of(Event Player), Position Of(Closest Player To(Position Of(Event Player), Opposing Team(Team Of(Event Player))))), Event Player);

Properties

Returns: Void
Parameters: Projectile, Direction, New Owner

Projectile
Type: Projectile, Default: Last Created Projectile
The projectile to redirect.

Direction
Type: Vector, Default: Vector(0, 0, 1)
The new normalized direction vector for the projectile.

New Owner
Type: Player, Default: Null
If specified, damage dealt by the projectile will be attributed to this player. Leave as Null to keep the original owner.

Workshop.codes