Specify a delay for the mission failed screen when failing collectcoins, collectwrench, destroycars, hitandrun, hitandruncaught, hitandrunrage, hitpeds, jump or spring conditions.
Context
This command should be called between calls to AddCondition and CloseCondition.
Syntax
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
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()
Notes
No additional notes.
Version History
1.18
Added this command.