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
to5
. Half values such as1.5
are also supported.
- Use
- acceleration: Sets how many stars this car will have for the acceleration attribute.
- Use
0
to5
. Half values such as1.5
are also supported.
- Use
- toughness: Sets how many stars this car will have for the toughness attribute.
- Use
0
to5
. Half values such as1.5
are also supported.
- Use
- handling: Sets how many stars this car will have for the handling attribute.
- Use
0
to5
. Half values such as1.5
are also supported.
- Use
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.