Jump to content
Sign in to follow this  
Monsada

HOW to do AI in boat disenbark on beach?

Recommended Posts

When I try to move to eart AI do not aproach to the beach, they get on water all time.

Another question how to know beach is aproach?

Share this post


Link to post
Share on other sites

It all depends on whether the boat is part of the group or not

If it is, a Get Out waypoint on the beach should suffice

If not, giving the boat a Transport Unload waypoint and then the men a Move waypoint next to it(which is synchronised to the transport waypoint) should do the job

Share this post


Link to post
Share on other sites

Well this is a bit tricky.

I have tryed many different way's to get this to work.

1. Surface

Check if the vehicle ( boat ) is at land position:

if !(surfaceIsWater (getPos _boat) ) then

The down side is that A.I. not always drive that far that the surface of the boad return land.

So this may will fail sometimes.

2. Speed

Check the speed of the boat:

Check if the boat is moving:

waitUntil { (speed _boat > 15) };

if (speed _boat > 15) then
{
      waitUntil { (speed _boat < 5) };

      {unAssignVehicle _x} forEach (crew _boat);
};

This sometimes is a bit tricky too. ;)

So far i could not find a 100% solution to make A.I. dismount a boat after reaching the beach.

If you or someone else know's a better solution please let me know.

Edited by SNKMAN

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  

×