MFK Command: SetStageVehicleCharacterJumpOut

Synopsis

Set the character to jump out of the vehicle when it's destroyed.

This must be called in the same stage as the AddStageVehicleCharacter call that added the character.

Syntax

SetStageVehicleCharacterJumpOut( <car>, <character>, [<direction>] );
  • car: The name of the car.
    • current: The player's current car.
  • character: The name of the character.
  • direction: The direction that the character will jump out of the vehicle. This is an angle from 0 to 360 degrees.
    • The default value of this depends on the character's position relative to the origin of the car.

Examples

SelectMission("m1");
	...
    
    AddStage();    
        AddStageVehicle("cVan","m1_cVan","NULL","cVan.con");

		AddStageVehicleCharacter("cVan", "lisa");
		SetStageVehicleCharacterJumpOut("cVan", "lisa", 270);

    	AddObjective("dummy");

        CloseObjective();
    CloseStage();
CloseMission();

Notes

This can only be used on characters added with AddStageVehicleCharacter.

History

1.19

  • Added this command.
Back to top