Tile - YCharacter - Get State – 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:Character status.png]]
<!---
*Allows to '''get''' / '''set''' '''status value''' of target entity.
THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE.
*Statuses are following:
-->
**Hunger
== Get State(Character, State) ==
**Freezing
 
**Overheating
[[File:YlandsTile-575.png]]
**Suffocation
 
<pre>getState(state: YCharacterState): number;</pre>
=== Parameters ===
 
==== state ====
 
Target state
 
=== Returns ===
 
'''number'''
 
=== Availability ===
 
[[Ylands:Tile Availability - Server|Server]], [[Ylands:Tile Availability - Not in Edu|Not in Edu]]
 
=== Description ===
 
Returns whether selected '''character state''' is active.


=Notes=
*Setting e. g. Hunger to 100 makes the character completely fed.
*Setting e. g. Freezing to 0 makes the character deadly cold.


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


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

Latest revision as of 14:26, 24 November 2023