Tile - YItem - Set Stack Count – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with " ---- {{Ylands scripting navbox}}")
 
No edit summary
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<!---
THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE.
-->
== Set Stack Count(Entity, Value) ==
[[File:YlandsTile-1079.png]]
<pre>static setStackCount(target: YEntity, value: number): void;</pre>
=== Parameters ===
==== target ====
Target entity
==== value ====
New stack size
=== Availability ===
[[Ylands:Tile Availability - Server|Server]]
=== Description ===
Allows to set '''stack size''' (item count) of target '''entity'''.
=== Notes ===
* Set count will be automatically clamped to maximum stack size of entity.




----
----
{{Ylands scripting navbox}}
{{Navbox/Ylands}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}
 
[[Category: Instructions]]

Revision as of 12:16, 12 November 2021

Set Stack Count(Entity, Value)

YlandsTile-1079.png

static setStackCount(target: YEntity, value: number): void;

Parameters

target

Target entity

value

New stack size

Availability

Server

Description

Allows to set stack size (item count) of target entity.

Notes

  • Set count will be automatically clamped to maximum stack size of entity.