PenResult_t

This type encapsulates all penetration data returned from FireBullet.

damage

Field

The damage done by the weapon.


hitgroup

Field

The hitgroup that was hit. May be invalid.


GetHitPos

Method

Returns one of the bullet impacts.

Arguments

Name
Type
Description

index

number

The hit position index

Returns

Type
Description

The bullet impact, nil if index >= GetHitPosCount() .

Example


GetHitPosCount

Method

Returns how many bullet impacts there is.

Arguments

None.

Returns

Type
Description

number

The bullet impact count

Example

Last updated