def fire_game_event(self, event_name, **kwargs): """Creates and fires an event to this player. :param str event_name: The name of the event to create and fire. :param dict kwargs: The variables to set to the event. """ # Create the event game_event = game_event_manager.create_event(event_name, True) # Set the variables game_event.variables.recursive_copy( KeyValues.from_dict(event_name, kwargs)) # Fire the event self.base_client.fire_game_event(game_event) # Free the event game_event_manager.free_event(game_event)