Skip to content

DamageParams

DamageParams is a table that contains parameters for dealing damage to props or participants. When a DamageParams is passed to a function, you are able to modify the parameters.

Type: number

The amount of damage to deal.

Type: Participant?

The attacking participant.

Type: DamageSource

The damage source.

Type: boolean?

If true, and the damage is fatal, the death will count as a headshot, meaning death screams will be muted and the corpse will display a headshot.

Type: number?

The time that this damage originated at, using os.clock().

Type: Vector3?

The position from where the damage was dealt (i.e, the attacker’s position if the participant is being shot).

Type: Vector3?

The position where the damage was dealt (i.e, the position where the bullet hit the participant).

Type: BasePart?

The part where the damage was dealt (i.e, the part where the bullet hit the participant).

Type: boolean?

If true, karma will not be affected by the damage.

Type: boolean?

If true, this will not apply self-defense against the attacker.

Type: boolean?

If true, score will not be affected by the damage.