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.
Properties
Section titled “Properties”Amount
Section titled “Amount”Type: number
The amount of damage to deal.
Attacker
Section titled “Attacker”Type: Participant?
The attacking participant.
Source
Section titled “Source”Type: DamageSource
The damage source.
IsHeadshot
Section titled “IsHeadshot”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.
TimeOrigin
Section titled “TimeOrigin”Type: number?
The time that this damage originated at, using os.clock().
Origin
Section titled “Origin”Type: Vector3?
The position from where the damage was dealt (i.e, the attacker’s position if the participant is being shot).
HitPosition
Section titled “HitPosition”Type: Vector3?
The position where the damage was dealt (i.e, the position where the bullet hit the participant).
HitPart
Section titled “HitPart”Type: BasePart?
The part where the damage was dealt (i.e, the part where the bullet hit the participant).
IgnoreKarma
Section titled “IgnoreKarma”Type: boolean?
If true, karma will not be affected by the damage.
IgnoreSelfDefense
Section titled “IgnoreSelfDefense”Type: boolean?
If true, this will not apply self-defense against the attacker.
IgnoreScore
Section titled “IgnoreScore”Type: boolean?
If true, score will not be affected by the damage.