Tile - YEntity - Is – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Ylands editor navbox}}" to "{{Navbox/Ylands}}")
m (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}")
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
[[Image:Ylands_Tile_-_Is_entity_class.png]]
<!---
*Returns whenever selected '''entity is''' of certain [[Ylands Tile - Tag info definition literal|'''class''']], e.g workstation.
THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE.
-->
== Is(Entity, Class) ==
 
[[File:YlandsTile-204.png]]
 
<pre>is(klass: YTag): boolean;</pre>
=== Parameters ===
 
==== class ====
 
Entity class to test
 
=== Returns ===
 
'''boolean''' Returns whether the selected '''entity is''' of certain '''class''', e.g workstation.
 
=== Availability ===
 
[[Ylands:Tile Availability - Client|Client]], [[Ylands:Tile Availability - Server|Server]]
 
=== Description ===
 
Returns whether the selected '''entity is''' of certain '''class''', e.g workstation.
 
== Is(Entity, Type) ==
 
[[File:YlandsTile-633.png]]
 
<pre>isType(type: YEntityType): boolean;</pre>
=== Parameters ===
 
==== type ====
 
Entity type to test
 
=== Returns ===
 
'''boolean'''
 
=== Availability ===
 
[[Ylands:Tile Availability - Client|Client]], [[Ylands:Tile Availability - Server|Server]]
 
=== Description ===
 
Returns whether target entity type matches selected type.




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


[[Category: Instructions]]
[[Category: Instructions]]
[[Category: Ylands 0.10]]

Latest revision as of 14:27, 24 November 2023

Is(Entity, Class)

YlandsTile-204.png

is(klass: YTag): boolean;

Parameters

class

Entity class to test

Returns

boolean Returns whether the selected entity is of certain class, e.g workstation.

Availability

Client, Server

Description

Returns whether the selected entity is of certain class, e.g workstation.

Is(Entity, Type)

YlandsTile-633.png

isType(type: YEntityType): boolean;

Parameters

type

Entity type to test

Returns

boolean

Availability

Client, Server

Description

Returns whether target entity type matches selected type.