Skip to content

event onMobInteract (client-side)

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 is 1, then mob was used, in any other case value is 0.
  • int to: represents current state of mob. If value is 1, then mob is used, in any other case value is 0.