Jump to content
Sign in to follow this  
Rafalski

How to force AI move very close to the vehicle

Recommended Posts

vehicle: helicopter MH60

_unit moveTo position MH60;

the closest _unit move to the helicopter is ~13m and stops, will not move any close.

How to force AI unit move close to the vehicle ex: 3m.

I think AI tries to avoid collision with the object or something , is it possible to switch it off ?

Share this post


Link to post
Share on other sites

i know when i use doMove to a empty vehicle AI goes into it, seems it doesnt care about the collision model.

so domove [(getPos vehicle select 0) + 1, getPos vehicle select 1,0]

makes AI move 1 meter to the E of vehicle.

edit: this was with vehicle placed empty in editor, and never been used. maybe a placing bug..

Share this post


Link to post
Share on other sites

hmm... maybe it works for small vehicles but not for MH-60. Still 13m or more.

I tried with animations but no effect of closing to the vehicle.

Share this post


Link to post
Share on other sites

i did a test in editor, i boarded a empty warrior and drove it a few meters just to make sure it wasnt affectede by a plcing bug, then in a trigger i had:

{_x doMove (getPos tank)} foreach units group x1

all units moved to tank, distance 0.5-1 meter.

did same on mh-60

all units moved to heli, distance 2-3 meter.

Edit: maybe its ACE related? some kind of safe distance forced by ACE?

Edited by Demonized

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  

×