Jump to content
Sign in to follow this  
wok

Making AI walk to heli and get in as pilot

Recommended Posts

I am trying to make an AI unit walk next to a heli on the pilot side and get in. I know I can make him get in with

 unit action ["getInPilot", targetVehicle] 

Now, the problem I am having is moving the unit to the correct position next to the heli on the pilot side, I tried MOVE waypoints (wanted to try the GET IN type but don't know how to set it to get in the pilot position) and doMove, also tried placing a helper to mark the position instead of moving it to the heli position. But the AI always stops a few meters away from the chopper. I wouldn't care if this was in the middle of the mission, but it's for a cutscene so I want it to look as good as possible. So how could I make the AI move to an exact position? Like the position he takes right before getting in the chopper when executing the "getInPilot" action.

Share this post


Link to post
Share on other sites

Just put a "GET IN" waypoint on top of the vehicle in the editor. If it's empty they will fill the pilots/drivers seat 1st. Set WP speed limited to get him to walk.

Share this post


Link to post
Share on other sites

As matti suggested, also set the wp to safe or careless + limited speed if you want a nice walk.

Share this post


Link to post
Share on other sites

Took me a while to figure out I had to place the waypoint exactly where the heli name was appearing when mouse overing it, otherwise it would act as a MOVE type and just walk near it. It still does a huge unnecesary turn around the chopper but it works. Thanks a lot guys.

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  

×