749 B
749 B
event onPlayerChangeMaxHealth
This event is triggered when player maximum health changes.
Original: onPlayerChangeMaxHealth
Parameters
dictkwargs:intplayerid: the id of the player whose maxium health points gets changed.intprevious: the previous maximum health points of the player.intcurrent: the new maximum health points of the player.
Usage
import pyg2o as g2o
@g2o.event('onPlayerChangeMaxHealth')
async def onChangeMaxHealth(playerid, previous, current):
print(f'Player {playerid} changed maximum health: {previous} -> {current}')