Browsing StarfallEx's section
โ† Back to ACE
Back to StarfallEx

SFEX.game.bulletDamage

S๐Ÿท๏ธ Game

Part of StarfallEx namespace

๐Ÿ”— External
game.bulletDamage(src, dir, damage, num, force, distance, spread, hullSize, ignoreEntity, cb)
View on GitHub|lua/starfall/libs_sh/game.lua:214
๐Ÿ“‹ 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

NameTypeDescription
srcVectorThe position to fire the bullets from.
dirVectorThe fire direction.
damage?numberThe damage dealt by the bullet. Default: (1-100)
num?numberThe amount of bullets to fire. Default: (1-40)
force?numberThe force of the bullets. Default: (0-100)
distance?numberMaximum distance the bullet can travel.
spread?VectorThe spread, only x and y are needed.
hullSize?numberThe hull size of the bullet. Default: (0-10)
ignoreEntity?EntityThe entity that the bullet will ignore when it will be shot.
cb?functionFunction 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.