Tile - YCharacter - Change Role – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search

Change Role(Character, Role, Reset equipment, Reset inventory)

YlandsTile-510.png

changeRole(role: YPlayerRole, resetEquip: boolean, resetInventory: boolean): void;

Parameters

role

New role

resetEquip

Whether the equipment will be reset to role default

resetInventory

Whether the inventory will be reset to role default

Availability

Server

Description

Allows to change role of target character.