Skip to content

class MobLockable extends MobInter (client-side)

Available since version: 0.1.0

This class represents 3d object in the world, which can be locked (i.e. DOORS, CHESTS).

Constructor

MobLockable(string model)

Parameters:

  • string model: the model name to be used as visual.

Constructor

MobLockable(userpointer ptr)

Parameters:

  • userpointer ptr: the pointer to the object from the game.

Properties

bool locked

Represents the locked state of lockable mob.


string keyInstance

Available since version: 0.1.10

Represents the instance of the key item needed to open this mob.


string pickLockStr

Available since version: 0.1.10

Represents the picklock combination neeeded to open the lock of this mob.
An example combination looks like that: LRLRLR, where L - Left and R - Right are short's for the direction of the picklock movement, needed to open the lock.


Methods

open

Available since version: 0.3.2

Note

Passing argument immediate=true will not play open sound.

This method will open the mob lockable.

void open(bool immediate = true)

Parameters:

  • bool immediate: true if you want to open door immediately (state ani), otherwise false (transition ani).

close

Available since version: 0.3.2

Note

Passing argument immediate=true will not play close sound.

This method will close the mob lockable.

void close(bool immediate = true)

Parameters:

  • bool immediate: true if you want to close door immediately (state ani), otherwise false (transition ani).

Callbacks

No callbacks.