Skip to main content

client.trace_bullet

Returns entindex, damage. Entindex is nil when no player is hit or if players are skipped.

client.trace_bullet(from_player: number, from_x: number, from_y: number, from_z: number, to_x: number, to_y: number, to_z: number, skip_players: boolean): number, number

Arguments

NameDescriptionType
from_playerEntity index of the player whose weapon will be used for this tracenumber
from_xX coordinate of the start of the tracenumber
from_yY coordinate of the start of the tracenumber
from_zZ coordinate of the start of the tracenumber
to_xX coordinate of the end of the tracenumber
to_yY coordinate of the end of the tracenumber
to_zZ coordinate of the end of the tracenumber
skip_playersPass true to skip expensive hitbox checks.boolean

Returns entindex: number, damage: number