Ground of Aces Modding
Loading...
Searching...
No Matches
Get Mission Event Count

Missions.get_mission_events_count

Parameters

mission_entity_id Entity ID of the mission currently accessing the mission script

Returns

Int The number of progress reports sent during the mission

Description

Event handler that returns how many times send_mission_event fires during the flight. The reports are spread evenly over the flight: each game minute the game computes floor(elapsed / completion time × count) and fires once whenever that number grows.

It is called once, while the mission is created, and only for a mission without a .json - a mission with JSON always sends exactly 3 reports and ignores this handler. When the handler is missing the game uses 3.

from Blindflug.FlightMission import MissionEvent
@event_handler(MissionEvent.GET_MISSION_EVENTS_COUNT)
def get_mission_events_count(mission_entity_id):
return 5
Definition FlightMissionEcsInstaller.cs:7