Ylands:Tile - YLock - Get Lock Cylinder Id

From Bohemia Interactive Community
Jump to navigation Jump to search

Get Lock Cylinder Id(Entity)

YlandsTile-1072.png

static getCylinderId(target: YEntity): number;

Parameters

target

Target entity (lock or key)

Returns

number

Availability

Client, Server

Description

Returns current Cylinder ID of the target entity.

Notes

  • Supported entities: doors, chests, padlocks, keys.
  • Cyllinder ID pairs locks and keys.