Jump to content
Sign in to follow this  
R34P3R

AI Moving problem....

Recommended Posts

Hi there.. i have some problems on my current Mission. i want that a Unit run/walk to a given target and stopping on it.. so i have testet the folloing:

Unit: Name = pilot

H (invisible) name = pilot_target

so now....

INIT:

pilot stop true;

and on the Script fire :

if(alive pilot) then {

pilot stop false;

pilot doMove getPos pilot_target;

};

this will work.. BUT: the distance from the target to the pilot is only 100m.. but the Pilot willrunn thru the half City !! this will take 8 - 15 Minutes !! It seems like the AI is supit and cant find the direkly way !

So i have do onother test :

I have addet some Waypoints to the Pilot and in the Script fire:

pilot stop false;

_grp = group pilot;

_grp setCurrentWaypoint [_grp,1];

but now.. the Pilot whant move ! he always stay on the same position !

Hope somebody can help me to fix this... Thanks a lot !

Share this post


Link to post
Share on other sites

Fixed...

pilot stop false;
pilot setBehaviour "Careless";
pilot disableAI "Target";
pilot disableAI "Autotarget";
pilot disableAI "Watch";

Share this post


Link to post
Share on other sites
Fixed...

pilot stop false;
pilot setBehaviour "Careless";
pilot disableAI "Target";
pilot disableAI "Autotarget";
pilot disableAI "Watch";

Ho. Nice find. That is perfect for making a bunch of insurgents syssies flee in terror.

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  

×