Jump to content
Sign in to follow this  
Coffeecat

Small Sqf Script whats wrong?

Recommended Posts

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

while {player distance AA1>=10} do {
gun1 doWatch target1;
sleep 2;
gun1 fire "D30";
sleep 10;
};
[color="Red"]
if (player distance AA1<=10) then {aa1 action ["Eject", gun1]
AA1 doMove getMarkerPos "marker1"};[/color]

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?

Edited by Coffeecat

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×