I was wondering if it's possible (or would be possible in near future) to change event's name, i.e. have a set_name method for events.
Syntax: Select all
@Event
def player_death(game_event):
game_event_kill = copy(game_event)
game_event_kill.set_int('victim', game_event.get_int('userid'))
game_event_kill.set_int('userid', game_event.get_int('attacker'))
game_event_kill.set_name('player_kill')
If this is not possible, would there be a workaround to easily create custom events (player_kill being just one example)?