event
onMobInteract (client-side)
Available since version: 0.1.4
This event is triggered when hero interacts with any kind of mob object in the world. In Gothic, mobs are special vobs on the map, that hero can interact with. For example bed, door, chest etc.
Parameters
userdata address, int type, int from, int to
userdata
address: the address of interacted mob.int
type: the type of interacted mob. For more information see Vob types.int
from: represents previous state of mob. If value is1
, then mob was used, in any other case value is0
.int
to: represents current state of mob. If value is1
, then mob is used, in any other case value is0
.