Tile - YResource - Has Resource – Ylands
Jump to navigation
Jump to search
(Created page with "<!--- THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE. --> == Has Resource(Player, Resource) == File:Yland...") |
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 16: | Line 16: | ||
'''boolean''' | '''boolean''' | ||
=== Availability === | |||
[[Ylands:Tile Availability - Server|Server]] | |||
=== Description === | === Description === | ||
Line 24: | Line 28: | ||
* '''Resource''' is utilized by custom *''skills''. | * '''Resource''' is utilized by custom *''skills''. | ||
== Has Resource(Resource) == | |||
[[File:YlandsTile-1216.png]] | |||
<pre>static hasResource(resource: YResource): boolean;</pre> | |||
=== Parameters === | |||
==== resource ==== | |||
=== Returns === | |||
'''boolean''' | |||
=== Availability === | |||
[[Ylands:Tile Availability - Client|Client]] | |||
=== Description === | |||
Returns true/false whether the client has the resource assigned. | |||
---- | ---- | ||
{{Navbox/Ylands}} | {{Navbox/Ylands}} | ||
{{DEFAULTSORT:{{#sub:{{PAGENAME}}| | {{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}} | ||
[[Category: Instructions]] | [[Category: Instructions]] |
Latest revision as of 14:27, 24 November 2023
Has Resource(Player, Resource)
static hasResource(player: YCharacter, resource: YResource): boolean;
Parameters
player
resource
Returns
boolean
Availability
Description
Returns whether the target player has the target Resource attached.
Notes
- Resource is utilized by custom *skills.
Has Resource(Resource)
static hasResource(resource: YResource): boolean;
Parameters
resource
Returns
boolean
Availability
Description
Returns true/false whether the client has the resource assigned.