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.
userdata address, int type, int from, int to
userdataaddress: the address of interacted mob.
inttype: the type of interacted mob. For more information see Vob types.
intfrom: represents previous state of mob. If value is
1, then mob was used, in any other case value is
intto: represents current state of mob. If value is
1, then mob is used, in any other case value is