BulletEntity:Collision

BulletEntity:Collision(entity: Entity, hit: RayCastHit, shooter: Player | nil): bool | nil

Parameters

Name Type Description
entity Entity
hit RayCastHit
shooter Player | nil

Returns

Type Description
bool | nil

Example

Hooks:Install('BulletEntity:Collision', 1, function(hook, entity, hit, shooter)
    -- Do stuff here.
end)
Last modified October 17, 2023: Update docs for 20056 (ba5f066e)