Skip to content

class MobInter extends Mob (client-side)

Available since version: 0.1.0

This class represents 3d object in the world, which can be focused and interacted with.

Constructor

MobInter(string model)

Parameters:

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

Constructor

MobInter(userpointer ptr)

Parameters:

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

Properties

string triggerTarget

Available since version: 0.2.1

Represents the vob name that will be triggered after interacting with the object.


string useWithItem

Available since version: 0.2.1

Represents the required item for the interaction with an object.


string sceme

Available since version: 0.2.1

Represents the sceme part of state animation, which will be played by player on interaction with mob.


int state

Available since version: 0.2.1

Represents the current interact state.


int stateNum (read-only)

Available since version: 0.2.1

Represents the number of interact states for the object.


int stateNum

Available since version: 0.2.1

Represents the next target interact state id for the object.


int mobStateAni (read-only)

Available since version: 0.2.1

Represents the current ani id used by the object during interaction.


int npcStateAni (read-only)

Available since version: 0.2.1

Represents the current ani id used by the npc during interaction with an object.


bool rewind

Available since version: 0.2.1

Represents the rewind feature, if it's set to true the object animation will rewind to the beginning state after npc finished interacting with it.


int direction

Available since version: 0.2.1

Represents the next interact state direction for the object. For more information see MobInter Direction


Methods

No methods.