646 B
646 B
event onPlayerEquipHelmet
This event is triggered when player equips or unequips helmet. When item is unequiped, empty str is returned instead.
Original: onPlayerEquipHelmet
Parameters
dictkwargs:intplayerid: the id of the player who equips a helmet.strinstance: the item instance from Daedalus scripts.
Usage
import pyg2o as g2o
@g2o.event('onPlayerEquipHelmet')
async def onEquip(playerid, instance):
print(f'Player {playerid} equipped {instance}')