Games > The Simpsons Hit & Run > Console File Commands > MFK Commands > Rewards > SetCarAttributes

SetCarAttributes

This command sets attributes for a car in the phonebooth.

Context

This command should be called in the rewards file (rewards.mfk).

Syntax

SetCarAttributes( name, top_speed, acceleration, toughness, handling );

Game.SetCarAttributes( name, top_speed, acceleration, toughness, handling )

  • name: The internal name of the car.
  • top_speed: Sets how many stars this car will have for the top speed attribute.
    • Use 0 to 5. Half values such as 1.5 are also supported.
  • acceleration: Sets how many stars this car will have for the acceleration attribute.
    • Use 0 to 5. Half values such as 1.5 are also supported.
  • toughness: Sets how many stars this car will have for the toughness attribute.
    • Use 0 to 5. Half values such as 1.5 are also supported.
  • handling: Sets how many stars this car will have for the handling attribute.
    • Use 0 to 5. Half values such as 1.5 are also supported.

Examples

// Both are valid
SetCarAttributes("famil_v", 1, 1.5, 2.5, 4);
SetCarAttributes("famil_v", 1.0, 1.5, 2.5, 4.0);

-- Both are valid
Game.SetCarAttributes("famil_v", 1, 1.5, 2.5, 4)
Game.SetCarAttributes("famil_v", 1.0, 1.5, 2.5, 4.0)

Notes

By default, there is a maximum of 50 car attributes.

Mods can bypass this limit by requiring the Mod Launcher's Increased Reward Limits hack.

Donut Team © 2023 · v4.0