Tile - YCharacter - Change Role – Ylands

From Bohemia Interactive Community
Revision as of 08:52, 8 July 2021 by YlandsClassyBot (talk | contribs) (Created page with "<!--- THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE. --> == Change Role(Character, Role, Reset equipment, Res...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

resetEquip

resetInventory

Description

Allows to change role of target character.

Notes

  • Reset equipment - Will set character equipment (i.e armor) to one defined by the role.
  • Reset inventory - Will set character inventory to one defined by the role.