WorldClass.server_onProjectileFire

Called when a projectile is fired in this world.

Kind: Callback

Environments: Game

Game

Callback side: Server

WorldClass:server_onProjectileFire(
    position,
    velocity,
    projectileName,
    shooter,
    uuid
)

Open the full Game reference

Parameters:

Name Type Description
self table The class instance.
position Vec3 The position in world space where projectile was fired from.
velocity Vec3 The fire velocity of the projectile.
projectileName string The name of the projectile. (Legacy, use uuid instead)
shooter Player/Unit/Shape/Harvestable/nil The shooter. Can be a Player, Unit, Shape, Harvestable or nil if unknown.
uuid Uuid The uuid of the projectile.