Skip to content

YaDamage

Damage manages damage/healing source and amount.

Properties

boolean IsFromTeam

DEPRECATED 
Checks if the source of damage/healing originates from a teammate. Returns true if the source is from the same team, or false if it comes from a different team.

YaEntity Enemy

The entity that causes the damage/healing

number Amount

The numerical value representing the damage or healing effect. A positive value indicates damage, while a negative value represents healing.