Tile - YEntity - Is – Ylands
Jump to navigation
Jump to search
No edit summary |
Lou Montana (talk | contribs) m (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}") |
||
(One intermediate revision by one other user not shown) | |||
Line 10: | Line 10: | ||
==== class ==== | ==== class ==== | ||
Entity class to test | |||
=== Returns === | === Returns === | ||
'''boolean''' Returns whether the selected '''entity is''' of certain '''class''', e.g workstation. | '''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 === | === Description === | ||
Returns whether the selected '''entity is''' of certain '''class''', e.g workstation. | 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}}| | {{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}} | ||
[[Category: Instructions]] | [[Category: Instructions]] |
Latest revision as of 14:27, 24 November 2023
Is(Entity, Class)
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
Description
Returns whether the selected entity is of certain class, e.g workstation.
Is(Entity, Type)
isType(type: YEntityType): boolean;
Parameters
type
Entity type to test
Returns
boolean
Availability
Description
Returns whether target entity type matches selected type.