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