Jump to content
Sign in to follow this  
igneous01

Making unit move to object, ignore bounding box

Recommended Posts

Im currently in the process of touching up my ai dragging script, the one issue that seems to allude me is that, when the ai is ordered to move to a wounded unit, he will not move close enough to that unit. Current distance check between the injured and the dragger is < 5, but this is way too far and looks awkward seeing the injured teleport into the draggers hands. If i set it to < 2, theres a 80% chance that it will work fine, other times though, the unit will move about 3-4m outside of the radius and the doMove will be considered complete. In the BIS ai heal module (which I still am in the process of deciphering) the ai moves right to the unit with no problems, ignoring the bounding box.

Is there a way of getting a unit to move to an object, ignoring the bounding box?

Share this post


Link to post
Share on other sites

what is the line of code that you are using to get the AI to move to the position ?

Share this post


Link to post
Share on other sites

Have a look at SLX_Drag.sqf in (CO)SLX_wounds. Solus got that working well for both player(s) and AI, & that code might assist you.

Share this post


Link to post
Share on other sites
what is the line of code that you are using to get the AI to move to the position ?

_unit doMove (getpos _injured)

i tried move as well, the _unit is also a part of a group, so move doesnt really work well. The units in the group should all break off and find the nearest injured unit near them and grab them.

@Orcinus, ill have a look at SLX_Drag, maybe find the answer in there

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  

×