Tile - YResource - Has Resource – Ylands

From Bohemia Interactive Community
Revision as of 11:16, 12 November 2021 by YlandsClassyBot (talk | contribs)
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.