Tile - YCharacter - Change Role – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
(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...")
 
No edit summary
Line 10: Line 10:


==== role ====
==== role ====
New role


==== resetEquip ====
==== resetEquip ====
Whether the equipment will be reset to role default


==== resetInventory ====
==== resetInventory ====
Whether the inventory will be reset to role default
=== Availability ===
[[Ylands:Tile Availability - Server|Server]]


=== Description ===
=== Description ===


Allows to change '''role''' of target '''character'''.
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.





Revision as of 12:16, 12 November 2021

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.