Tile - YResource - Has Resource – Ylands

From Bohemia Interactive Community
Revision as of 14:27, 24 November 2023 by Lou Montana (talk | contribs) (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.