535 B
535 B
event onPlayerShoot
This event is triggered when player shoot using ranged weapon.
Original: onPlayerShoot
Parameters
dictkwargs:intplayerid: the id of the player who just shot.str | nullmunition: the item instance from Daedalus scripts.
Usage
import g2o
@g2o.event('onPlayerShoot')
def onShoot(**kwargs):
print(kwargs['playerid'], 'made a shot.')