MFK Command: SetCondThreshold

Synopsis

Set a threshold for the condition.

For use inside insidetrigger and outsidetrigger conditions.

Syntax

SetCondThreshold( <threshold> );
  • threshold: The value that must be reached for the condition to fail.

Examples

SelectMission("m1");
	...
    
    AddStage();        
        AddCondition("insidetrigger");
            SetCondTrigger("z2phone1");

            // Require the player to be in the trigger for 10 seconds to fail.
            SetCondThreshold(10);
        CloseCondition();
    CloseStage();
CloseMission();

Notes

No additional notes.

History

1.18

  • Added this command.
Back to top