Available since Version 1.18.
Sets the total amount required to fail the following ASF conditions:
Scope
This command should be called between calls to AddCondition and CloseCondition in a mission's initialisation script.
Syntax
MFK
Lua
SetCondTotal( total );Game.SetCondTotal( total )- total: The total amount required to fail the condition.
Examples
MFK
Lua
AddCondition("jump");
// Jump 3 times
SetCondTotal(3);
CloseCondition();Game.AddCondition("jump")
-- Jump 3 times
Game.SetCondTotal(3)
Game.CloseCondition()