Available since Version 1.18.
Sets the total amount required for the following ASF objective types:
Scope
This command should be called between calls to AddObjective and CloseObjective in a mission's initialisation script.
Syntax
MFK
Lua
SetObjTotal( total );Game.SetObjTotal( total )- total: The total amount required to pass the objective.
Examples
MFK
Lua
AddObjective("jump");
// Jump 3 times
SetObjTotal(3);
CloseObjective();Game.AddObjective("jump")
-- Jump 3 times
Game.SetObjTotal(3)
Game.CloseObjective()