Tile - YEnergy - Get Other Connected Entity – Ylands

From Bohemia Interactive Community
Revision as of 11:16, 12 November 2021 by YlandsClassyBot (talk | contribs)
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.