Results 1 to 7 of 7
  1. #1
    Deathray75's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    22
    Reputation
    10
    Thanks
    1
    My Mood
    Sick

    Exclamation 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


  2. #2
    [WhA]4FunPlayin's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Not here
    Posts
    757
    Reputation
    8
    Thanks
    169
    My Mood
    Lonely
    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....)

  3. #3
    Deathray75's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    22
    Reputation
    10
    Thanks
    1
    My Mood
    Sick

    Exclamation

    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

  4. #4
    [WhA]4FunPlayin's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Not here
    Posts
    757
    Reputation
    8
    Thanks
    169
    My Mood
    Lonely
    rocket = magicbullet(..)

  5. #5
    Deathray75's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    22
    Reputation
    10
    Thanks
    1
    My Mood
    Sick
    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
    Last edited by Deathray75; 12-03-2010 at 05:23 AM.

  6. #6
    [WhA]4FunPlayin's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Not here
    Posts
    757
    Reputation
    8
    Thanks
    169
    My Mood
    Lonely
    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));
    Last edited by [WhA]4FunPlayin; 12-03-2010 at 05:47 AM.

  7. The Following User Says Thank You to [WhA]4FunPlayin For This Useful Post:

    Deathray75 (12-03-2010)

  8. #7
    Deathray75's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    22
    Reputation
    10
    Thanks
    1
    My Mood
    Sick
    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