Tile - YEnergy - Get Other Connected Entity – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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.