+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Help with orbit

  1. #1
    Wire Noob sadow200's Avatar
    Join Date
    Jun 2007
    Posts
    11

    Default Help with orbit

    I cant get it to work can u tell me what i did rong?

    Code:
    @name orbit
    @persist TV:vector EV:vector Stabilize On Cursor Me Attack Run Orbit Alive SV:vector Height Spin
    runOnTick(1)
    runOnChat(1)
    EE=entity():isWeldedTo(1),EA=(EE:angles()*5+EE:angVel())*5
    EV=EE:massCenter(),ER=EE:right(),EF=EE:forward(),E U=EE:up(),O = owner(),
    Lev=sqrt((EE:inertia():length()^2)/3)
    LS = O:lastSaid()
    if(chatClk(O) & LS == "be gone") {selfDestructAll()}
    if(chatClk(O) & LS:left(9) == "elevation") {Height = LS:sub(11, LS:length()):toNumber()}
    if(chatClk(O) & LS:left(5) == "orbit") {Orbit=!Orbit}
    if(chatClk(O) & LS:left(11) == "cease orbit") {Orbit=0}
    if(chatClk(O) & LS:left(4) == "spin") {Spin = 1}
    if(chatClk(O) & LS:left(10) == "cease spin") {Spin = 0}
    if(chatClk(O) & LS:left(13) == "cease control") {Me = 1}
    if(chatClk(O) & LS:left(5) == "chase") {Me = 1}
    if(chatClk(O) & LS:left(5) == "leave") {Me = 0}
    if(chatClk(O) & LS:left(4) == "come") {Orbit=!Orbit}
    if(chatClk(O) & LS:left(4) == "come") {Me = 1}
    if(chatClk(O) & LS:left(4) == "come") {Spin = 1}
    if(chatClk(O) & LS:left(4) == "stop") {Orbit = 0}
    if(chatClk(O) & LS:left(4) == "stop") {Me = 0}
    if(chatClk(O) & LS:left(4) == "stop") {Spin = 0}
    if(chatClk(O) & LS:left(1) == "!") {
    if(LS == "!") {
    findIncludeClass("npc_*")
    findIncludeClass("player")
    findExcludePlayer(O)
    Fsphere = findInSphere(Oos(), 50000)
    if(Fsphere > 0) {
    T = findClosest(O:aimPos())
    Attack = 1
    Run = 0
    Me = 0
    } else {
    Attack = 0
    Me = 1
    Cursor = 0
    Run = 0
    }
    } else {
    Name = LS:sub(2, LS:length())
    T = findPlayerByName(Name)
    Attack = 1
    Run = 0
    Me = 0
    Cursor = 0
    }
    } elseif(clk("A") | clk("B")) {
    Attack = 0
    Run = 1
    Me = 1
    Cursor = 0
    
    if(EE:type() == "prop_physics") {
    Stabilize = 1
    }
    }
    if(chatClk(O) & LS == "control") {
    Cursor = 1
    Attack = 0
    Me = 0
    } elseif(chatClk(O) & LS == "cease control") {
    Cursor = 0
    Me = 1
    Spin = 1
    Orbit = 1
    SV = EV
    }
    if(chatClk(O) & LS == "spin") {
    Spin = 1
    }
    elseif(chatClk(O) & LS == "cease spin") {
    Spin = 0
    }
    if(chatClk(O) & LS == "chase") {
    if(Me) {
    Me = 0
    Cursor = 0
    Attack = 0
    SV = EV
    } else {
    Me = 1
    Cursor = 0
    Attack = 0
    }
    }
    if(chatClk(O) & LS == "repair") {
    Stabilize = 1
    }
    elseif(chatClk(O) & LS == "cease repair") {
    Stabilize = 0
    }
    if(chatClk(O) & LS == "activate") {
    On = 1
    } elseif(chatClk(O) & LS == "deactivate") {
    On = 0
    }
    thanks in advance

  2. #2
    Wirererer eduardo's Avatar
    Join Date
    Jan 2009
    Posts
    399

    Default Re: Help with orbit

    jw what does it do? looks interesting

  3. #3
    I think I think too much -HP-'s Avatar
    Join Date
    Feb 2009
    Location
    Behind you with a very sharp knife.
    Posts
    2,466

    Default Re: Help with orbit

    What is it supposed to do, and what does not work?

  4. #4
    Wire Noob sadow200's Avatar
    Join Date
    Jun 2007
    Posts
    11

    Default Re: Help with orbit

    it ses the code is rong like theres errors on the code lines idk whats rong and it make entitys orbit you :P
    ________________________________________________

    Ryu FTW

  5. #5
    I think I think too much -HP-'s Avatar
    Join Date
    Feb 2009
    Location
    Behind you with a very sharp knife.
    Posts
    2,466

    Default Re: Help with orbit

    Quote Originally Posted by sadow200 View Post
    it ses the code is rong like theres errors on the code lines idk whats rong and it make entitys orbit you :P
    You mean there's errors when you validate it?

  6. #6
    Wire Noob sadow200's Avatar
    Join Date
    Jun 2007
    Posts
    11

    Default Re: Help with orbit

    here take the code and try to use it in game and you will see
    ________________________________________________

    Ryu FTW

  7. #7
    I think I think too much -HP-'s Avatar
    Join Date
    Feb 2009
    Location
    Behind you with a very sharp knife.
    Posts
    2,466

    Default Re: Help with orbit

    Where did you get the code? It does not sound as if you made it yourself. And I can't try it in-game now, I'm afraid.

  8. #8
    Wire Noob sadow200's Avatar
    Join Date
    Jun 2007
    Posts
    11

    Default Re: Help with orbit

    my friend made it for me wen he sold his pc so he cant help me -.- and it sed like ()) is not there or lioke it should be here blah blah and i dont know what that means
    ________________________________________________

    Ryu FTW

  9. #9
    I think I think too much -HP-'s Avatar
    Join Date
    Feb 2009
    Location
    Behind you with a very sharp knife.
    Posts
    2,466

    Default Re: Help with orbit

    Could you post the entire error?

  10. #10
    Wirererer malum's Avatar
    Join Date
    Feb 2009
    Posts
    217

    Default Re: Help with orbit

    Quote Originally Posted by sadow200 View Post
    my friend made it for me
    Theres your reason.
    Not to be a jackass, but honestly, you shouldn't be using it if you have no clue how it works.

+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Cam Controller Orbit
    By Techni in forum Installation and Malfunctions Support
    Replies: 4
    Last Post: 09-21-2008, 08:35 AM
  2. Orbit?
    By -|Raveness|- in forum Installation and Malfunctions Support
    Replies: 1
    Last Post: 04-11-2008, 07:18 PM
  3. Automated satellite Orbit Guidence System?
    By Locklear in forum Installation and Malfunctions Support
    Replies: 3
    Last Post: 11-26-2007, 03:09 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots