Tile - YEnergy - Is Energy Port Connected – Ylands
Jump to navigation
Jump to search
No edit summary |
Lou Montana (talk | contribs) m (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}") |
||
(One intermediate revision by one other user not shown) | |||
Line 10: | Line 10: | ||
==== entity ==== | ==== entity ==== | ||
Target entity | |||
==== port ==== | ==== port ==== | ||
Target port | |||
=== Returns === | === Returns === | ||
'''boolean''' | '''boolean''' | ||
=== Availability === | |||
[[Ylands:Tile Availability - Client|Client]], [[Ylands:Tile Availability - Server|Server]] | |||
=== Description === | === Description === | ||
Returns whether | Returns whether selected '''port''' is connected to the '''power''' grid. | ||
=== Notes === | === Notes === | ||
Line 28: | Line 36: | ||
---- | ---- | ||
{{Navbox/Ylands}} | {{Navbox/Ylands}} | ||
{{DEFAULTSORT:{{#sub:{{PAGENAME}}| | {{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}} | ||
[[Category: Instructions]] | [[Category: Instructions]] |
Latest revision as of 15:26, 24 November 2023
Is Energy Port Connected(Entity, Port)
static isEnergyPortConnected(entity: YEntity, port: number): boolean;
Parameters
entity
Target entity
port
Target port
Returns
boolean
Availability
Description
Returns whether selected port is connected to the power grid.
Notes
- Energy ports are numbered from 0, e.g: ports of entity with 3 ports are numbered 0, 1, 2.