This type encapsulates all penetration data returned from FireBullet.
FireBullet
Field
The damage done by the weapon.
The hitgroup that was hit. May be invalid.
Method
Returns one of the bullet impacts.
Arguments
index
number
The hit position index
Returns
Vector?
Vector
?
The bullet impact, nil if index >= GetHitPosCount() .
index >= GetHitPosCount()
Example
Returns how many bullet impacts there is.
None.
The bullet impact count
Last updated 5 days ago
local positions = {} for i = 1, pen_result:GetHitPosCount() do positions[i] = pen_result:GetHitPos(i - 1) end
local amount = pen_result:GetHitPosCount()