Tile - YCharacter - Lock Equipment Slot – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Ylands scripting navbox}}" to "{{Ylands editor navbox}}")
m (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}")
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Image:Ylands_Tile_-_Lock_equipment_slot.png]]
<!---
*Allows to '''lock''' / '''unlock''' equipment [[Ylands Tile - Equipment slot literal|'''slot''']] of a character
THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE.
*Locked slots does '''not''' allow '''players''' to '''equip''' or '''remove''' items.
-->
== Lock Equipment Slot(Character, Slot, Lock) ==


=Notes=
[[File:YlandsTile-333.png]]
*'''Equipment''' of locked slots '''can''' be still '''modified''' using [[Ylands Tile - Equip character item|'''Equip Item''']] or [[Ylands Tile - Despawn entity|'''Despawn Entity''']].
 
<pre>lockEquipmentSlot(slot: YEquipmentSlot, lock: boolean): void;</pre>
=== Parameters ===
 
==== slot ====
 
Target slot
 
==== lock ====
 
Slot lock state (boolean)
 
=== Availability ===
 
[[Ylands:Tile Availability - Server|Server]]
 
=== Description ===
 
Allows to '''lock''' / '''unlock''' equipment '''slot''' of a character.
 
=== Notes ===
 
* Locked slots do '''not''' allow '''players''' to '''equip''' or '''remove''' items.




----
----
{{Ylands editor navbox}}
{{Navbox/Ylands}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}


[[Category: Instructions]]
[[Category: Instructions]]
[[Category: Ylands 0.12]]

Latest revision as of 15:26, 24 November 2023

Lock Equipment Slot(Character, Slot, Lock)

YlandsTile-333.png

lockEquipmentSlot(slot: YEquipmentSlot, lock: boolean): void;

Parameters

slot

Target slot

lock

Slot lock state (boolean)

Availability

Server

Description

Allows to lock / unlock equipment slot of a character.

Notes

  • Locked slots do not allow players to equip or remove items.