Tile - YResource - Has Resource – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search

Has Resource(Player, Resource)

 

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)

 

static hasResource(resource: YResource): boolean;

Parameters

resource

Returns

boolean

Availability

Client

Description

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