Tile - YEntity - Damage – Ylands

From Bohemia Interactive Community
(Redirected from Ylands Tile - Damage entity)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Damage(Entity, Instigator, Amount, Type)

YlandsTile-949.png

damage(instigator: YEntity, amount: number, type: YDamageType): void;

Parameters

instigator

Instigator causing the damage (optional)

amount

Amount of damage

type

Damage type

Availability

Server

Description

Will reduce hitpoints of target entity by given amount.

Notes

  • Damage type will govern how the damage will be reduced by target resistances.
  • Pure damage type cannot be resisted.