Set a threshold for the insidetrigger / outsidetrigger conditions.
Context
This command should be called between calls to AddCondition and CloseCondition.
Syntax
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
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()
Notes
No additional notes.
Version History
1.18
Added this command.