Ground of Aces Scripting API
Get Time to Start

Mission.get_time_to_start

Parameters

mission_entity_id Entity ID of the mission currently accessing the mission script

Returns

Int The amount of time available to start the mission in minutes

Description

Event handler that returns the amount of time a player has to start a mission before it automatically fails. The value is interpreted in minutes. This event handler is invoked during the initialization of the mission.

import random
@event_handler(MissionEvent.GET_TIME_TO_START)
def get_time_to_start(mission_entity_id):
# Return a random start time between two and four hours
return random.randrange(120,240)