i must be code stupid..(and i am)..I did as you suggested and still cant get it to count
This forum is now archived!
- Welcome to the archive!
News:
The 3DRad community can be found at classdev.net.
- 3D Rad - Free 3D game maker - Forum >
- General Category >
- 3D Rad - User-created Sample Projects, Scripts, Tutorials >
- Advanced Homing Missile prototype
Author Topic: Advanced Homing Missile prototype (Read 4243 times)
jestermon
Hmmmm..
Link a valueprint to the script, and let's say for argument sake it's OBJ_132, then add the following line in the script...
OUT_132 = score;
just after the line
score++;
which you added before, and the score should show on the screen.
Link a valueprint to the script, and let's say for argument sake it's OBJ_132, then add the following line in the script...
OUT_132 = score;
just after the line
score++;
which you added before, and the score should show on the screen.
ok, i was able to get it to count, i linked to counter, and made the changes you suggested...thanks..
now on to my next project, getting a auto turrent to shoot down the missle...LOL
now on to my next project, getting a auto turrent to shoot down the missle...LOL
jestermon
now on to my next project, getting a auto turrent to shoot down the missle...LOLYou are going to need some interesting projection calculations for this. Possible, but tricky. speed of bullet, speed of missile, projected path of missile, 2 cases of beer, a couple dozen pizzas, and trails to mark protected intersections for debugs... And then you need someone to drag you away from you pc once in a while, to do mundane and stupid things like sleep and work.
OK....one more question on this project...If I wanted to remap the mouse button controls to the keyboard, how would I do it? any suggestions?
jestermon
OK....one more question on this project...If I wanted to remap the mouse button controls to the keyboard, how would I do it? any suggestions?Use
if(iKeyDown(iKeyCode("DIK_SPACE")) && TARGETLOCK && !missileFIRED){
instead of
if(iMouseButtonClick(0) && TARGETLOCK && !missileFIRED){
Here "DIK_SPACE" refers to the space-bar
For available keys, see http://www.3drad.com/forum/index.php?topic=4762.msg39595#msg39595
It's really cool!
I have a question though:
How can I attach it to a plane and then have explosion particles.
(version 2 doesnt work with me so im making my own particles for hits)
I have no script experience what so ever!
I have a question though:
How can I attach it to a plane and then have explosion particles.
(version 2 doesnt work with me so im making my own particles for hits)
I have no script experience what so ever!
jestermon
I have a question though:Use the function LocalToParent, with a mesh on the plane as the parent, and the missile as the child. You will need to know a little bit of scripting to do this though.
How can I attach it to a plane
jestermon
Istill cant get it to work!I really can't teach you scripting. If you don't understand what the Local3Parent function does, then I have nothing to suggest.
Pages: 1 [2]