Tile - YResource - Has Resource – Ylands

From Bohemia Interactive Community
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...")
 
No edit summary
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.





Revision as of 12:16, 12 November 2021

Has Resource(Player, Resource)

YlandsTile-826.png

static hasResource(player: YCharacter, resource: YResource): boolean;

Parameters

player

resource

Returns

boolean

Availability

Server

Description

Returns whether the target player has the target Resource attached.

Notes

  • Resource is utilized by custom *skills.

Has Resource(Resource)

YlandsTile-1216.png

static hasResource(resource: YResource): boolean;

Parameters

resource

Returns

boolean

Availability

Client

Description

Returns true/false whether the client has the resource assigned.