Skip to content

doors/meta/sh_entity

Source: gamemode/modules/doors/meta/sh_entity.lua

Documented functions: 3

Functions


ENTITY:LockDoor(bNoPartner)

Locks a door and syncs the state to clients via relay. Also locks the partner door if one exists.

Realm: server

Parameters

Name Type Description
bNoPartner boolean If true, skips locking the partner door (used internally to avoid recursion)

Returns

  • boolean: success

ENTITY:ToggleDoorLock()

Toggles a door's lock state and syncs to clients via relay.

Realm: server

Returns

  • boolean: success

ENTITY:UnlockDoor(bNoPartner)

Unlocks a door and syncs the state to clients via relay. Also unlocks the partner door if one exists.

Realm: server

Parameters

Name Type Description
bNoPartner boolean If true, skips unlocking the partner door (used internally to avoid recursion)

Returns

  • boolean: success