Tile - YEnergy - Get Other Connected Entity – Ylands

From Bohemia Interactive Community
Revision as of 15:27, 24 November 2023 by Lou Montana (talk | contribs) (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Get Other Connected Entity(Entity, Port, Connected, No connection)

YlandsTile-768.png

static getOtherConnectedEntity(entity: YEntity, port: number, connected: (entity: YEntity, port: number) => void, noConnection: () => void): void;

Parameters

entity

port

connected

noConnection

Availability

Server

Description

Returns whether there is another entity connected to the target energy port and allows for additional instructions based on the outcome.