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

SFEX.hook.EntityFireBullets

S๐Ÿท๏ธ Hooks

Part of StarfallEx namespace

๐Ÿ”— External
hook.add("EntityFireBullets", "name", function(ent, data) end)
View on GitHub|lua/starfall/libs_sh/hook.lua:550
๐Ÿ“‹ Has LDoc๐Ÿ‘๏ธ 0 viewsUpdated 2 months ago

Description

Called every time a bullet is fired from an entity

Parameters

NameTypeDescription
entEntityThe entity that fired the bullet
datatableThe bullet data. See http://wiki.facepunch.com/gmod/Structures/Bullet

Returns

TypeDescription
functionOptional callback to called as if it were the Bullet structure's Callback. Called before the bullet deals damage with attacker, traceResult.

Examples

No examples available.

Used In

No usages found in the codebase.