Index
Mission

AcquireMissionObjective

AcquireMissionObjective(<-objectiveNumber <-showPopup)

Description

Acquires a mission objective. Mission objectives are defined in the game menu of a mission. This API is primarily meant for acquiring a custom objective. The other objectives can be acquired but it may not be recommended. Whenever a mission objective is acquired, a snapshot of game stats is taken at the time the call is made. This snapshot of stats includes the game time, tree count, etc. The snapshot includes the data that is used to submit to the play log (should the player submit to the play log).
The showPopup argument determines if the “Objective Obtained” message appears.
Mission objectives are referenced by a number, 0-5.
0 = “Nullify Enemies”
1 = “Activate Totems”
2 = “Reclaim”
3 = “Survive”
4 = “Collect Items”
5 = “Custom”

Examples

#Award the custom objective
AcquireMissionObjective(5 false)

Index