Tile - YResource - Get Resource Value – Ylands

From Bohemia Interactive Community
Revision as of 11:16, 12 November 2021 by YlandsClassyBot (talk | contribs)
Jump to navigation Jump to search

Get Resource Value(Player, Resource)

YlandsTile-828.png

static getResourceValue(player: YCharacter, resource: YResource): number;

Parameters

player

resource

Returns

number

Availability

Server

Description

Allows to get the current amount of target Resource the player has.

Notes

  • Resource is utilized by custom *skills.

Get Resource Value(Resource)

YlandsTile-1213.png

static getResourceValue(resource: YResource): number;

Parameters

resource

Returns

number

Availability

Client

Description

Returns the current resource value.