I'm planning out a stunt mode for my game and I need some ideas on how to script something like this:
only start the trick counter when the car is in mid air
if car X rotation > 360 then add 50 points to trick score
if car Y rotation > 180 then add 75 points and double the current trick score
if car Z rotation > 180 then add 125 points and triple the current trick score
When the car finally comes in contact with the ground record the trick score to the main score.
There's also a two wheeling trick which should be easier to script:
If wheels in contact < 2
then
Add 5 points every .3 second to the trick score
else
stop giving points and record the trick score to main score
Something like this anyway....I'm thinking of releasing this sort of game mode in the beta if we can get something like this to work. Also, if you think you can help, I'll post a physics test project you can script in.
I'm sorry this is quite a lot to ask for, but even some small scripting ideas will get this closer to what I'll need.
-Rush3fan
only start the trick counter when the car is in mid air
if car X rotation > 360 then add 50 points to trick score
if car Y rotation > 180 then add 75 points and double the current trick score
if car Z rotation > 180 then add 125 points and triple the current trick score
When the car finally comes in contact with the ground record the trick score to the main score.
There's also a two wheeling trick which should be easier to script:
If wheels in contact < 2
then
Add 5 points every .3 second to the trick score
else
stop giving points and record the trick score to main score
Something like this anyway....I'm thinking of releasing this sort of game mode in the beta if we can get something like this to work. Also, if you think you can help, I'll post a physics test project you can script in.
I'm sorry this is quite a lot to ask for, but even some small scripting ideas will get this closer to what I'll need.
-Rush3fan