Tile - YEntity - Damage – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}")
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Image:Ylands_Tile_-_Damage_entity.png]]
<!---
*Will '''reduce hitpoints''' of target entity by given amount.
THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE.
*Damage type will govern how the damage amount will be resisted by characters armor.
-->
*Pure damage type cannot be resisted.
== Damage(Entity, Instigator, Amount, Type) ==
 
[[File:YlandsTile-949.png]]
 
<pre>damage(instigator: YEntity, amount: number, type: YDamageType): void;</pre>
=== Parameters ===
 
==== instigator ====
 
Instigator causing the damage (optional)
 
==== amount ====
 
Amount of damage
 
==== type ====
 
Damage type
 
=== Availability ===
 
[[Ylands:Tile Availability - Server|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.




----
----
{{Ylands scripting navbox}}
{{Navbox/Ylands}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}
 
[[Category: Instructions]]

Latest revision as of 14:26, 24 November 2023

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.