Ground of Aces Scripting API
Get Mission Event Count

Mission.get_event_count

Parameters

mission_entity_id Entity ID of the mission currently accessing the mission script

Returns

Int The number of mission events trigger during the mission

Description

Event handler that returns the number of mission events that will happen during the mission. The events are then triggered at a consistent period of event_count / mission_duration. This event handler is invoked during the initialization of the mission.

@event_handler(MissionEvent.GET_MISSION_EVENTS_COUNT)
def get_mission_events_count(mission_entity_id):
return 5