Modding Tools > Lucas' Simpsons Hit & Run Mod Launcher > Hacks > Mod Requirable Hacks > Additional Script Functionality > MFK Commands > Stages > Vehicle Characters > SetStageVehicleCharacterJumpOut

SetStageVehicleCharacterJumpOut

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

Context

This command should be called between calls to AddStage and CloseStage.

Additionally, this should only be called in the same stage the vehicle character was added with AddStageVehicleCharacter.

Syntax

SetStageVehicleCharacterJumpOut( car, character, [direction] );

Game.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

AddStage();    
	AddStageVehicle("cVan","m1_cVan","NULL");

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

	AddObjective("dummy");
	CloseObjective();
CloseStage();

Game.AddStage() 
	Game.AddStageVehicle("cVan","m1_cVan","NULL")

	Game.AddStageVehicleCharacter("cVan", "lisa")
	Game.SetStageVehicleCharacterJumpOut("cVan", "lisa", 270)

	Game.AddObjective("dummy")
	Game.CloseObjective()
Game.CloseStage()

Notes

No additional notes.

Version History

1.19

Added this command.

Donut Team © 2020 · v4.0