Blueprint rules help

Im playing around with the Blueprint rules and need some help with the “torque scale”. In particular I want to scale speed down when you pass a check point or another car. Another project is scaling speed up of the car you hit while racing.

Fill a variable with the torque scale you want the current car’s engine power multiplied with (between 0-1).
Then permanently scale the engine power with it.
I am using a main var with values between 50-100, the engine power of each player.
Initially filled with 100, the scale filled with 1.
That “power” variable I modify (set variable for the triggering player (or collider or colidee) through addition and substraction. (The value is displayed in the HUD.)
Then I divide the content through 100: my torque scale for the current car.

Initially: value 100 for each of the 12 players
Continually (per Player):
Calculate torque scale
Continually: Scale engine with value

Per incident: Add or substract power

Incidents: Checkpoints passed, objects hit, skills performed.

For example see this blueprint I prepared for a PVP race next weekend with some friends:

Hitting a wall: 1% deducted.
Hitting another car: 2% less power (the other car looses 1%).
Hitting destructables (cactii, bushes, fences) 0.5% per object.
Driving through the pitlane: engine power restored to 100%.

2 Likes