Tile - YResource - Has Resource – Ylands

From Bohemia Interactive Community
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.