MFK Command: SetObjExplosion

Synopsis

Set an explosion to use for the objective.

For use inside hitpeds objectives.

Syntax

SetObjExplosion( <explosion_index>, <scale>, [<vertical_scale>]);
  • explosion_index: The index of the explosion effect.
    • 24: Car Explosion.
  • scale: The scale of the explosion.
  • vertical_scale: The vertical scale of the explosion. Defaults to "scale" if not specified.

Examples

SelectMission("m1");
	...
    
    AddStage();    
    	AddObjective("hitpeds");
        	SetObjExplosion(24, 0.25, 3);
        CloseObjective();
    CloseStage();
CloseMission();

Notes

No additional notes.

History

1.18

  • Added this command.
Back to top