❗ Change Javelin Flight Path

Posts 1–7 of 7 · Page 1 of 1
❗ Change Javelin Flight Path
i need help with the magic bullet code for my killstreak

i need javelin to shoot up (for a certain place) go up over and down onto the target

can some one give me the "moveto" code because i dont how to move it

thank you so much and i know some of you are annoyed by me. sorry
=D

Just remove the missile after 3 seconds and re-create it on it's older origin

rOrigin = rocket.origin;
rocket delete();
rocket = magicbullet(..r ocket. origin, target....)
Quote Originally Posted by [WhA]4FunPlayin View Post
Just remove the missile after 3 seconds and re-create it on it's older origin

rOrigin = rocket.origin;
rocket delete();
rocket = magicbullet(..r ocket. origin, target....)
didn't work here

uninitialised variable 'rocket'
keep getting this error plz help
Quote Originally Posted by [WhA]4FunPlayin View Post
rocket = magicbullet(..)
Please stop doing this i dont have the slightest clue what your telling me to do?

here wht i have

Code:
HeavyArtillery3 = HeavyArtillery+(0, 400, 0);
        MagicBullet( "javelin_mp", HeavyArtillery3, HeavyArtillery3-(0, 0, 0), self );// location + first rocket
		
		rOrigin = rocket.origin;
        rocket delete();
        rocket = magicbulletMagicBullet( "javelin_mp", HeavyArtillery3, HeavyArtillery3-(0, 0, 0), self );// your second code? = uninitiated variable 'rocket'
Quote Originally Posted by [WhA]4FunPlayin View Post
rocket = magicbullet(..)
i think the problem is rOrigin because your trying to define what is rocket.origin what the script doesn't know what is meant by rock origin would self.origin work?

yes the problems with the "rocket origin" if possbile please can you help thank you

Thank you i finnally found what to do

after mashing my brain i worked out "what you meant"

heres what i did for those who need this code
Code:
rocket = MagicBullet( "javelin_mp", HeavyArtillery3, HeavyArtillery3-(0, 0, 0), self ); //location where the bullet will be going or rather where started
		wait 10;// wait time ;)
        rocket delete(); //rocket deleted
		rOrigin = rocket.origin; //defines the origin (_8^(l)
		rocket = MagicBullet( "javelin_mp", rocket.origin, rocket.origin-(0, 0, 0), self );//second rocket will be going
anyway the mate
Code:
createRocketAndChangeLocation(startPos, endPos)
{
rocket = MagicBullet( "javelin_mp", startPos, endPost+(0,0,1000), self ); 
wait 3;
oldOrigin = rocket.origin;
rocket delete();
rocket = MagicBullet( "javelin_mp", oldOrigin, endPost, self );
}
use as:
self thread createRocketAndChangeLocation(Start position, End position);
Start position - place to launch the rocket
End position - where to hit

Example:
Code:
self thread createRocketAndChangeLocation((0,1337,50), (52, 524, 423));
Quote Originally Posted by [WhA]4FunPlayin View Post
Code:
createRocketAndChangeLocation(startPos, endPos)
{
rocket = MagicBullet( "javelin_mp", startPos, endPost+(0,0,1000), self ); 
wait 3;
oldOrigin = rocket.origin;
rocket delete();
rocket = MagicBullet( "javelin_mp", oldOrigin, endPost, self );
}
use as:

Start position - place to launch the rocket
End position - where to hit

Example:
Code:
self thread createRocketAndChangeLocation((0,1337,50), (52, 524, 423));
LOVE YOU THANK YOU SO SO SO SO SO SO SO MUCH <3
Posts 1–7 of 7 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Talk with us