Results 1 to 2 of 2

  Click here to go to the first Developer post in this thread.  

Thread: Small Sqf Script whats wrong?

  1. #1
    Suspended Member
    Join Date
    Nov 27 2010
    Location
    Germany, Würzburg
    Posts
    425

    Small Sqf Script whats wrong?

    I dont know what went wrong somehow my thread is duplicated, pls delete one...

    Code:
    while {player distance AA1>=10} do {
    gun1 doWatch target1;
    sleep 2;
    gun1 fire "D30";
    sleep 10;
    };
    
    if (player distance AA1<=10) then {aa1 action ["Eject", gun1]
    AA1 doMove getMarkerPos "marker1"};
    
    Exit;
    AA1 is a soldier who fires the D30 Artillery. Problem is, he ejects when im close, but he doesnt move to the marker. After ejecting from the Gun he moves for 2 secounds and jumps into it back. Im just starting with sqf scripting, so excuse noob failures. After the red marked condition is true, the script is ended right?
    Last edited by Coffeecat; Feb 14 2011 at 16:03.

  2.   This is the last Developer post in this thread.   #2
    Warrant Officer Sniperwolf572's Avatar
    Join Date
    Feb 23 2004
    Location
    Bosnia & Herzegovina
    Posts
    2,074
    Try unnasigning the unit from the vehicle before forcing him to eject with unassignVehicle.

Posting Permissions

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