Jump to content
Sign in to follow this  
Limo98ITA

(Solved)I need help, the ai doesn't want to get out of the vehicle.

Recommended Posts

I'm trying to create a mission, everything works so far except the AI, which doesn't want to get out of the vehicle once it reaches the given position. The situation is that once one of the players identifies the High-Value Target (HVT), the HVT will walk up to a car and get in as a passenger. The driver will then drive to the designated position, but the problem is that the HVT doesn't get out of the car regardless of any command given to him via SQF/trigger or even through waypoints.

 

Quote

waitUntil {(triggerActivated trg6)};

HVT1 doMove (position car);
HVT1 assignAsCargo car;
[HVT1] orderGetIn true;

sleep 5;

car doMove (getMarkerPos "ps");

waitUntil {(HVT1 distance getMarkerPos "ps" < 0)};

// Disassegna l'unità dal veicolo
unassignVehicle HVT1;

HVT1 action ["eject", car];

 

Share this post


Link to post
Share on other sites

Try and take a look at this similar post, I'm almost sure the same solution there works for you as well:

 

Share this post


Link to post
Share on other sites
waitUntil {(HVT1 distance getMarkerPos "ps" < 0)};

This will never evaluate true.

Share this post


Link to post
Share on other sites

Thanks to both of you for the answers. I will try and let you know if I have solved it.

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  

×