Files
PyG2O/docs/defaultEvents/player/onPlayerChangeWeaponMode.md
2024-11-04 19:09:49 +03:00

822 B

event onPlayerChangeWeaponMode

This event is triggered when player changes the weapon mode.

Original: onPlayerChangeWeaponMode

Parameters

  • dict kwargs:
    • int playerid: the id of the player which changes the weapon mode.
    • int oldWeaponMode: the old weapon mode which was used by the player. For more information see TBD.
    • int newWeaponMode: the new weapon mode in which player is currently using. For more information see TBD.

Usage

import g2o
        
@g2o.event('onPlayerChangeWeaponMode')
def onChangeWM(**kwargs):
    print(f'Player {kwargs['playerid']} changed wm: {kwargs['oldWeaponMode']} -> {kwargs['newWeaponMode']}')