Available since Version 1.18.
Set a threshold for the insidetrigger / outsidetrigger objectives.
Scope
This command should be called between calls to AddObjective and CloseObjective in a mission's initialisation script.
Syntax
MFK
Lua
SetCondThreshold( threshold );Game.SetCondThreshold( threshold )- threshold: The amount of time the player must be inside or outside the trigger to pass the objective.
- Defaults to 0.
Examples
MFK
Lua
AddObjective("insidetrigger");
SetObjTrigger("z2phone1");
// Require the player to be inside that trigger for 10 seconds to pass.
SetObjThreshold(10);
CloseObjective();Game.AddObjective("insidetrigger")
Game.SetObjTrigger("z2phone1")
-- Require the player to be inside that trigger for 10 seconds to pass.
Game.SetObjThreshold(10)
Game.CloseObjective()