# BeforeProjectileLaunched

Example usage:

```lua
-- Cancel all telepearl throws
Events.BeforeProjectileLaunched(function(event)
    if (event.shooter == nil) then
        return
    end
    
    if (event.projectileType == "telepearl") then
       event.cancelled = true
    end
end)
```

### Parameters

#### shooter: [Entity](https://docs.easy.gg/scripting/bedwars-scripting/objects/entity) | nil

The entity that launched the projectile (may not exist).

#### projectileType: [ProjectileType](https://docs.easy.gg/scripting/bedwars-scripting/types/projectiletype)

The type of projectile that hit.

#### position: [Vector3](https://create.roblox.com/docs/reference/engine/datatypes/Vector3)

The position from which the projectile was launched.

#### velocity: [Vector3](https://create.roblox.com/docs/reference/engine/datatypes/Vector3)

The velocity of the projectile when launched.

#### sourceItemType: [ItemType](https://docs.easy.gg/scripting/bedwars-scripting/types/itemtype) | nil

The type of item from which the projectile was launched, if the projectile was directly fired from the item.

#### cancelled: bool <mark style="color:yellow;">\[modifiable]</mark>

If set to true, the projectile launch will be cancelled.
