Results 1 to 7 of 7

Thread: shoting right up in the air

  1. #1
    Gunnery Sergeant
    Join Date
    Mar 13 2004
    Location
    sweden, stockholm, lidingö
    Posts
    522

    Exclamation

    I've made a script to make some AIs shot at an invisible target.
    the problem is that they're shoting right up in the air

    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_e1=_this select 0
    _e2=_this select 1
    _e3=_this select 2
    _e4=_this select 3
    _e5=_this select 4
    _e6=_this select 5
    _e7=_this select 6
    _e8=_this select 7
    _e9=_this select 8
    _e10=_this select 9

    _count=2200

    #fire
    _e1 fire &#91;&#34;PK&#34;,&#34;PK&#34;&#93;
    _e2 fire &#91;&#34;PK&#34;,&#34;PK&#34;&#93;
    _e3 fire &#91;&#34;PK&#34;,&#34;PK&#34;&#93;
    _e4 fire &#91;&#34;PK&#34;,&#34;PK&#34;&#93;
    _e5 fire &#91;&#34;PK&#34;,&#34;PK&#34;&#93;
    _e6 fire &#91;&#34;PK&#34;,&#34;PK&#34;&#93;
    _e7 fire &#91;&#34;PK&#34;,&#34;PK&#34;&#93;
    _e8 fire &#91;&#34;PK&#34;,&#34;PK&#34;&#93;
    _e9 fire &#91;&#34;PK&#34;,&#34;PK&#34;&#93;
    _e10 fire &#91;&#34;PK&#34;,&#34;PK&#34;&#93;
    ~0.1
    _count=_count-1
    ?_count==0&#58; goto &#34;end&#34;
    goto &#34;fire&#34;

    #end[/QUOTE]

    is there a way to make&#39;em shot forward and not up in the air?

  2. #2
    name the target
    give em the command:-

    whoever DoFire whatevertarget

  3. #3
    Gunnery Sergeant
    Join Date
    Mar 13 2004
    Location
    sweden, stockholm, lidingö
    Posts
    522
    Author of the Thread
    no that&#39;s not what I want. I don&#39;t want the unit to target something just fire forward.
    if I wanted the unit to fire at another unit I would have used that command. but it&#39;s not supposed to.

  4. #4
    im not sure if u jsut can make it fire without a targe tby default

    but maybe make it fire at a game logic

  5. #5
    Master Gunnery Sergeant
    Join Date
    Jul 15 2003
    Location
    Belgium, the land of surialism
    Posts
    1,003
    No, Ai can&#39;t fire gamelogics, it needs a real target.
    With "fire" he will shoot up in the air, even combined with a dowatch command.
    I&#39;m afraid the only solution is an invisible target.

  6. #6
    Gunnery Sergeant
    Join Date
    Mar 13 2004
    Location
    sweden, stockholm, lidingö
    Posts
    522
    Author of the Thread
    and how do I make an invissible target?

  7. #7
    Master Gunnery Sergeant
    Join Date
    Jul 15 2003
    Location
    Belgium, the land of surialism
    Posts
    1,003
    It&#39;s an addon, don&#39;t worry it&#39;s a tiny one

    Download it HERE




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •