Tile - YContainer - Get Container Items – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}")
 
(15 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Image:Ylands_Tile_-_Open-Close_door.png ]]
<!---
*Will open/close target entity.
THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE.
*Works only with doors.
-->
== Get Container Items(Entity) ==
 
[[File:YlandsTile-1045.png]]
 
<pre>static getItems(target: YEntity): YEntity[];</pre>
=== Parameters ===
 
==== target ====
 
Target container
 
=== Returns ===
 
'''YEntity[]'''
 
=== Availability ===
 
[[Ylands:Tile Availability - Client|Client]], [[Ylands:Tile Availability - Server|Server]]
 
=== Description ===
 
Returns an '''array''' of items that are in the container inventory.
 
=== Notes ===
 
* Works only with '''containers''' - chests, barrels etc.




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

Latest revision as of 15:27, 24 November 2023