Tile - YItem - Set Stack Count – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Image:Ylands_Tile_-_Item_stack_count.png]]
<!---
*Allows to '''get''' / '''set''' stack size of target entity.
THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE.
*Set count will be automatically clamped to maximum stack size of entity.
-->
== 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.