Hi everybody,
I was looking for a thread talking about how to add a speed limiter (pit limit) for a pitlane in a racing game.
I tried to manage it adding a Event on Location covering the pitlane, one smaller at the exit for shutting it off and a script. My issue is obviously the script:
I think I wrote all. So what's wrong with it?
Thanks.
I was looking for a thread talking about how to add a speed limiter (pit limit) for a pitlane in a racing game.
I tried to manage it adding a Event on Location covering the pitlane, one smaller at the exit for shutting it off and a script. My issue is obviously the script:
- I linked it with the car and the event on location
- Then wrote the script
Code: [Select]
void Main()
{
OUT_3 = 0.5;
}
- Then set to Active at Start
- Then set Script START ON CONDITION on the pit's Event on Location (condition: Car CHECK FOR ENTERING)
- Then set Script STOP ON CONDITION on the pit exit's EoL (condition: Car CHECK FOR ENTERING)
I think I wrote all. So what's wrong with it?
Thanks.