Modding Tools > Lucas' Simpsons Hit & Run Mod Launcher > Hacks > Mod Requirable Hacks > Additional Script Functionality > CON Commands > AddVehicleCharacter

AddVehicleCharacter

This can be used to add additional characters to a car on top of the driver and the player character's.

Syntax

AddVehicleCharacter( character, [joint, rotation] );

Game.AddVehicleCharacter( character, [joint, rotation] )

  • character: The name of the character to add.
  • joint: The name of the joint to place the character on. Defaults to "pl".
  • rotation: The rotation of the character on the joint. Defaults to 180.
    • 180 is facing forwards in the car since characters are backwards in this game.

Examples

// Add Marge to the Passenger Seat
AddVehicleCharacter("marge");
​
// Add Bart to the Smoke Joint 
//  (you'd probably want to add custom joints to the car for other passengers)
AddVehicleCharacter("bart", "sl", 0);

-- Add Marge to the Passenger Seat
Game.AddVehicleCharacter("marge")
​
-- Add Bart to the Smoke Joint 
--  (you'd probably want to add custom joints to the car for other passengers)
Game.AddVehicleCharacter("bart", "sl", 0)

Notes

Characters added using this command cannot be removed from the car via a mission script.

History

1.19

Added this command.

Donut Team © 2024 · v4.0