Available since Version 1.18.
Set a threshold for the the insidetrigger / outsidetrigger conditions.
Scope
This command should be called between calls to AddCondition and CloseCondition 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 fail the condition.
- Defaults to 0.
Examples
MFK
Lua
AddCondition("insidetrigger");
SetCondTrigger("z2phone1");
// Fail the player if they're inside the trigger for 10 seconds.
SetCondThreshold(10);
CloseCondition();Game.AddCondition("insidetrigger")
Game.SetCondTrigger("z2phone1")
-- Fail the player if they're inside the trigger for 10 seconds.
Game.SetCondThreshold(10)
Game.CloseCondition()