event onMobInterStateChange (client-side)
Available since version: 0.3.0
This event can be canceled
This event is triggered when hero/npc changes animation state while interacting with mob inter object in the world. In Gothic, mob inters are special vobs on the map, that hero/npc can interact with. For example bed, door, chest etc.
Parameters
int playerid, userdata address, int type, int from, int to
intplayerid: the id of the hero/npc that is interacting with interaction mob. If value is-1,rewindanimation is being played without hero/npc interaction.userdataaddress: the address of interaction mob.inttype: the type of interacted mob. For more information see Vob types.intfrom: represents previous state of mob. If value is1, then mob was used, in any other case value is0.intto: represents current state of mob. If value is1, then mob is used, in any other case value is0.