MFK Command: SetCondDelay

Synopsis

Specify a delay after the condition is failed for the mission to end.

For use inside collectcoins, collectwrench, destroycars, hitandrun, hitandruncaught, hitandrunrage, hitpeds, jump, and spring conditions.

Syntax

SetCondDelay( <delay> );
  • delay: The amount of time in seconds to delay the mission ending after the condition is failed. Default varies by condition:
    • 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

SelectMission("m1");
	...
    
    AddStage();    
    	AddObjective("dummy");
        	...
        CloseObjective();
        
        AddCondition("jump");
			// Make it wait longer for some reason.
        	SetCondDelay(3);
        CloseCondition();
    CloseStage();
CloseMission();

Notes

No additional notes.

History

1.18

  • Added this command.
Back to top