MFK Command: SetCondDecay

Synopsis

Set the decay delay and decay rate for the condition.

For use inside insidetrigger and outsidetrigger conditions.

Syntax

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

Examples

SelectMission("m1");
	...
    
    AddStage();
		AddObjective("dummy");
		
		CloseObjective();

    	AddCondition("insidetrigger");
			SetCondTrigger("z2Phone1");
		
			SetCondDecay(3, 2);
        CloseCondition();
    CloseStage();
CloseMission();

Notes

No additional notes.

History

1.18

  • Added this command.

Revision #1
Created Tue, Feb 5, 2019 7:47 PM by Loren Goodwin
Updated Thu, Mar 7, 2019 11:14 PM by Loren Goodwin