Part of StarfallEx namespace
๐ External
game.bulletDamage(src, dir, damage, num, force, distance, spread, hullSize, ignoreEntity, cb)๐ Has LDoc๐๏ธ 0 viewsUpdated 2 months ago
Description
Fires a bullet. Bullet made with this function will not have any tracer, you will have to make them yourself.
Parameters
| Name | Type | Description |
|---|---|---|
src | Vector | The position to fire the bullets from. |
dir | Vector | The fire direction. |
damage? | number | The damage dealt by the bullet. Default: (1-100) |
num? | number | The amount of bullets to fire. Default: (1-40) |
force? | number | The force of the bullets. Default: (0-100) |
distance? | number | Maximum distance the bullet can travel. |
spread? | Vector | The spread, only x and y are needed. |
hullSize? | number | The hull size of the bullet. Default: (0-10) |
ignoreEntity? | Entity | The entity that the bullet will ignore when it will be shot. |
cb? | function | Function to be called with attacker, traceResult after the bullet was fired but before the damage is applied (the callback is called even if no damage is applied). |
Returns
No return values documented.
Examples
No examples available.
Used In
No usages found in the codebase.