Ground of Aces Scripting API
Get Completion Time

Mission.get_completion_time

Parameters

mission_entity_id Entity ID of the mission currently accessing the mission script

Returns

Int The time duration of a mission in minutes

Description

Event handler that returns the time duration of a mission. The value is interpreted in minutes. This event handler is invoked during the initialization of the mission.

import random
@event_handler(MissionEvent.GET_COMPLETION_TIME)
def get_completion_time(mission_entity_id):
# Return a random completion time between one and two hours
return random.randrange(600,1200)