Available since Version 1.18.
Sets how long the delay is before the mission failed screen comes up when failing as a result of 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
SetCondDelay( delay );Game.SetCondDelay( delay )- delay: The amount of time in seconds to delay the mission ending after the condition is failed.
- Default delay varies by condition type.
- collectcoins: 1 second.
- collectwrench: 1 second.
- destroycars: 1 second.
- hitandrun: 2 seconds.
- hitandruncaught: 2 seconds.
- hitandrunrage: 1 second.
- hitpeds: 1 second.
- jump: 1 second.
- spring: 1 second.
Examples
MFK
Lua
AddCondition("jump");
// Make it wait longer for some reason.
SetCondDelay(3);
CloseCondition();Game.AddCondition("jump")
-- Make it wait longer for some reason.
Game.SetCondDelay(3)
Game.CloseCondition()