Tile - YEnergy - Get Port Count – 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}}}}")
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Image:{{FULLPAGENAME}}.png]]
<!---
*Returns the '''number''' of energy '''ports''' of selected '''entity'''.
THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE.
-->
== Get Port Count(Entity) ==


=Notes=
[[File:YlandsTile-1056.png]]
*Energy ports are numbered from 0, e.g: ports of entity with 3 ports are numbered 0, 1, 2
 
<pre>static getPortCount(target: YEntity): number;</pre>
=== Parameters ===
 
==== target ====
 
Target entity
 
=== Returns ===
 
'''number'''
 
=== Availability ===
 
[[Ylands:Tile Availability - Client|Client]], [[Ylands:Tile Availability - Server|Server]]
 
=== Description ===
 
Returns the '''number''' of energy '''ports''' of target '''entity'''.




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


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

Latest revision as of 15:27, 24 November 2023