Tile - YEntity - Get Resistance – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Ylands scripting navbox}}" to "{{Ylands editor navbox}}")
m (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}")
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Image:Get-set resistance.png]]
<!---
*Gets/sets [[Ylands Tile - Number literal|'''number''']] (value) of resistance against defined [[Ylands Tile - Damage type literal|'''damage type''']] for target '''entity'''.
THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE.
-->
== Get Resistance(Entity, Damage type) ==
 
[[File:YlandsTile-506.png]]
 
<pre>getResistance(damageType: YDamageType): number;</pre>
=== Parameters ===
 
==== damageType ====
 
Resistance type
 
=== Returns ===
 
'''number'''
 
=== Availability ===
 
[[Ylands:Tile Availability - Client|Client]], [[Ylands:Tile Availability - Server|Server]], [[Ylands:Tile Availability - Not in Edu|Not in Edu]]
 
=== Description ===
 
Returns selected '''resistance''' of the target entity against the specific '''type of damage'''.


=Note=
*Entities with resistances are armor parts and carnivore animals.


----
----
{{Ylands editor navbox}}
{{Navbox/Ylands}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}


[[Category: Instructions]]
[[Category: Instructions]]
[[Category: Ylands 0.12]]

Latest revision as of 15:27, 24 November 2023