648 B
648 B
event onPlayerEquipHelmet
This event is triggered when player equips or unequips helmet. When item is unequiped, null is returned instead.
Original: onPlayerEquipHelmet
Parameters
dictkwargs:intplayerid: the id of the player who equips a helmet.strstr | null: instance: the item instance from Daedalus scripts.
Usage
import g2o
@g2o.event('onPlayerEquipHelmet')
def onEquip(**kwargs):
print(f'Player {kwargs['playerid']} equipped {kwargs['instance']}')