Jump to content
Sign in to follow this  
braker

[AI] How to get them out from an SDV but underwater ?

Recommended Posts

Hello, i have an issue in my mission : I have two AI SDVs ans i would like to get them out without that tem going to the shores before disembark.

If an expert could help me, I would be very happy.

Thanks and Regards.

Share this post


Link to post
Share on other sites

Have you tried giving them a Get Out waypoint infrot of th shore?

Share this post


Link to post
Share on other sites

Yes, the GET OUT waypoint will make them to go to shore BEFORE getting out of SDV.

Share this post


Link to post
Share on other sites

Try this

{
commandGetOut _x
} forEach crew vehicle submarine;

in the on activation field of your last waypoint (the one where you want them to disembark).

Just make sure to replace "submarine" with the name of you svd.

Share this post


Link to post
Share on other sites
Try this

{
commandGetOut _x
} forEach crew vehicle submarine;

in the on activation field of your last waypoint (the one where you want them to disembark).

Just make sure to replace "submarine" with the name of you svd.

Ok, that works perfectly, thank's you sir ! :)

---------- Post added at 10:23 ---------- Previous post was at 09:39 ----------

There is a problem, your solution worked only one time, now, the AI go to shore before getting out... :(

It's very curious.

---------- Post added at 11:07 ---------- Previous post was at 10:23 ----------

After several tests, i think that the AI will get out underwater or on the shores randomly. But at very long distance from the shores, AI get out always underwater...

So I still need an expert.

Thanks and Regards.

Share this post


Link to post
Share on other sites

Why not force the AIs out on a script's exec?

Something like:

  • force AIs out with commandGetOut _x
  • get the coords of the vehicle they've just left
  • delete that veh
  • spawn same veh in the same pos ([x,y,z])

A workaround so AIs won't try to get back into their 'original' veh.

Share this post


Link to post
Share on other sites
Why not force the AIs out on a script's exec?

Something like:

  • force AIs out with commandGetOut _x
  • get the coords of the vehicle they've just left
  • delete that veh
  • spawn same veh in the same pos ([x,y,z])

A workaround so AIs won't try to get back into their 'original' veh.

There has to be an easier solution.

Share this post


Link to post
Share on other sites

You need to be able to detect how close to the shoreline the team is.

Waituntil {_x distance shoreline < 50} foreach units group sdv

Should work

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  

×