# WorldClass.server_onProjectileFire

Called when a projectile is fired in this world.

**Kind:** Callback

**Environments:** Game

## Game

**Callback side:** Server

``` { .lua .api-signature }
WorldClass:server_onProjectileFire(
    position,
    velocity,
    projectileName,
    shooter,
    uuid
)
```

[Open the full Game reference](../Game-Script-Environment/Classes/WorldClass.md#server_onprojectilefire)

**Parameters:**

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