747 B
747 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.intoldMaxHP: the previous maximum health points of the player.intnewMaxHP: the new maximum health points of the player.
Usage
import g2o
@g2o.event('onPlayerChangeMaxHealth')
def onChangeMaxHealth(**kwargs):
print(f'Player {kwargs['playerid']} changed maximum health: {kwargs['oldMaxHP']} -> {kwargs['newMaxHP']}')