862 B
862 B
event onPlayerMobInteract
This event is triggered when player 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.
Original: onPlayerMobInteract
Parameters
dictkwargs:intplayerid: represents previous state of mob. If value is1, then mob was used, in any other case value is0.intfrom: represents current state of mob. If value is1, then mob is used, in any other case value is0.
Usage
import g2o
@g2o.event('onPlayerMobInteract')
def onMobInteract(**kwargs):
if kwargs['to'] == 1:
print(kwargs['playerid'], 'started interaction with the MOB')