3D Rad - Free 3D game maker - Forum

This forum is now archived!

This forum is locked, and is a read-only version. A new community-ran forum can be found at classdev.net

News:

The 3DRad community can be found at classdev.net.

Pages: [1]

Author Topic: Speed limit  (Read 1214 times)

« on: November 11, 2012, 12:59:31 PM »
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 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.
« Reply #1 on: November 11, 2012, 01:19:33 PM »
Never mind, I did it. Now I've another issue: can I apply a path to follow to Andros? So I'll click on a button, Andros move and reach the pit zone in front of the box and do the pit (scripting, obviously).
« Reply #2 on: November 12, 2012, 10:53:10 AM »
Now I've another issue: can I apply a path to follow to Andros? So I'll click on a button, Andros move and reach the pit zone in front of the box and do the pit (scripting, obviously).

What's wrong with EOI and 'start object'?


Rocket Rumble, a 3D Rad puzzle game:
http://www.3drad.com/forum/index.php?topic=9896.0
« Reply #3 on: November 13, 2012, 01:29:46 PM »
None, sir, but at this moment I attempted to make the Andros move clicking and holding Enter with EOI. I wanted to move them with a single click.
« Reply #4 on: December 10, 2012, 04:44:36 AM »
Do you have apply opposite when unpressed setting on or something

secondry2

« Reply #5 on: December 12, 2012, 10:58:46 PM »
Do you mean, press it once, they come in, press it again they leave?
I havent tested this, but try using toggle mode on an eoi
« Reply #6 on: December 15, 2012, 02:12:41 PM »
Do you mean, press it once, they come in, press it again they leave?
I havent tested this, but try using toggle mode on an eoi

Yes, this is what I mean. I'll try your suggestion, but I thought that maybe there's a way to do it with a script.
« Reply #7 on: December 20, 2012, 08:27:44 PM »
I might give this a try later today badinetor
« Reply #8 on: December 23, 2012, 09:28:11 AM »
Great, thanks.  :)
Pages: [1]