MFK Command: SetObjDecay

Synopsis

Set the decay delay and decay rate for the objective.

For use inside insidetrigger and outsidetrigger objectives.

Syntax

SetObjDecay( <decay_rate>, [<decay_delay>]  );
  • decay_delay: The amount of time that must pass before the objective begins decaying.
  • decay_rate: The rate at which the objective decays. Defaults to 0.

Examples

SelectMission("m1");
	...
    
    AddStage();    
    	AddObjective("insidetrigger");
			SetObjTrigger("z2Phone1");
		
			SetObjDecay(3, 2);
        CloseObjective();
    CloseStage();
CloseMission();

Notes

No additional notes.

History

1.18

  • Added this command.
Back to top