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: event on proximity - projectile  (Read 945 times)

« on: April 18, 2012, 01:45:10 PM »
 ??? how an i have a projectile to shoot at my tank car when it comes withen say 7m of it automaticaly?  what i mean is when the tank drives too close(to the bunker with guns,) the gun fires 1 shot every second at me until i go away from range with out me pressing any buttons to fire them??? ???
« Reply #1 on: April 19, 2012, 11:13:11 AM »
Uhm, using an EventOnProximity?
Rocket Rumble, a 3D Rad puzzle game:
http://www.3drad.com/forum/index.php?topic=9896.0
« Reply #2 on: April 19, 2012, 11:56:28 AM »
how do i use it? ive tried using one but it doesnt seem to work..   also, how can i have it to trun upto a max of 30 degrees?
« Reply #3 on: April 20, 2012, 07:44:53 AM »
it works... all you have to do (without scripting) is:

1- attach the two objects you want to monitor and in the event properties set those to monitor
2- attach the object you want to start/stop/switch/whatever... and in the event proprties set it to behave the way you want
3- run the program...

a simple test would be to put a car and a rigidbody on a terrain (with a gforce) and link em both to the terrain and gforce for gravity and collision with the terrain (if you want you could also link the car with the rigidbody for those two to collide)...

make sure that's working fine, then add a soundsource object and select any sound you have available... set the sound properties so that the looping and playing at start are unchecked... you only want the sound to play when the car and the rigidbody are within a certain range (proximity) of each other, and you only want the sound to play once when they are...

next, add an event on proximity object to the project... link the car, the rigidbody, and the sound source to it... set the car and the rigidbody to monitor, and set the sound to start... set the distance to 3 or 4, and set it to continuous detection...

run the program and try to ram the rigidbody with the car... the sound will play when the car is within the proximity range you set...

experiment with it a lil (distances and types of responses for the sound)...

red... you've gotta start reading the help provided with these objects if you really wanna learn how too use em... everything you need is in the event on proximity help (the help button opens it up)... that's the only way you're ever going to solve your problems with RAD...  the help in all of these objects  gives you enough info so that you can use these things, and in most cases, figure out how to fix something that is not doing what you want it to do...


--Mike
« Reply #4 on: April 21, 2012, 02:49:04 AM »
kk  is that the help on 3drad's task bar? ::)  thanks for helping me! i really apresiate it.  :)
« Reply #5 on: April 21, 2012, 05:15:21 AM »

every properties-window had a HELP Button between OK and CANCEL...  :o
new forum search:
http://www.google.com/ site:www.3drad.com searchword  ( <-- copy )
3DRad is now in the same Brain-Area like my old C64 and Amiga Memories!
« Reply #6 on: April 21, 2012, 07:11:25 AM »
just what 3DSim said... double click on the object in the editor to open up the properties dialogue box as seen in the screenshot 3DSim shows above... the HELP button is near the bottom where he said...

every object has one...

--Mike
« Reply #7 on: April 23, 2012, 09:22:48 AM »
thaks!!  sorry i was a bit dumb!  ( i posted b4 i had a look!! ::) !)
Pages: [1]