Mission
The mission object gives you access to the current mission's data and lets you create and manage missions
Properties
| Property | Type | Description |
|---|---|---|
id |
number |
The current campaign mission id |
completedsidemissions |
number |
The number of completed side missions |
Properties are readable and writable
Methods
Create
Creates a new custom mission and returns its id
Warning
This method can only be called inside the EarlyInit event
Args
stationid- The station id where the mission marker will appeardescription- The mission description shown to the playertype- The mission type:0for campaign,1for freelance
Enable
Makes the mission marker visible and activates the custom mission
Args
missionid - The id of the custom mission to enable
Disable
Hides the mission marker and deactivates the custom mission
Args
missionid - The id of the custom mission to disable
EnableValkyrie
Enables the Valkyrie campaign
NextCampaignMission
Advances the campaign to the next mission