MFK Command: SetObjThreshold

Synopsis

Set a threshold for the objective.

For use inside insidetrigger and outsidetrigger objectives.

Syntax

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

Examples

SelectMission("m1");
	...
    
    AddStage();    
        AddObjective("insidetrigger");
            SetObjTrigger("z2phone1");

            // Require the player to be inside that trigger for 10 seconds to pass.
            SetObjThreshold(10);
        CloseObjective();
    CloseStage();
CloseMission();

Notes

No additional notes.

History

1.18

  • Added this command.
Back to top