Jump to content
Sign in to follow this  
sknam

{_x moveincargo NEAREST} forEach .... syntax possible ?

Recommended Posts

Hi I would like to put automaticly units in cargo without to have to name the vehicle. (for large deployment, copy and past group near vehicle)

is there a way to put something similar to this in a group leader init:

{_x moveincargo Nearestvehicle} forEach units group this

thanks,

sorry for my poor English:cool:

Share this post


Link to post
Share on other sites

Besides scripting there are ways to do it in the editor, assuming your units are part of the same group:

  1. Place the vehicle on the map
  2. Place the units on the map. Change their "Special"-field to "In cargo"
  3. Group the vehicle with the units' leader

or

  1. Place the vehicle on the map
  2. Place the units on the map.
  3. For the units you just placed add a "Get in nearest" waypoint somewhere around the vehicle. No need to group the vehicle to anything.

Edited by Fincuan

Share this post


Link to post
Share on other sites
{_x moveInCargo (nearestObject [_x, "LandVehicle"])} forEach (units (group this));

Share this post


Link to post
Share on other sites

Arf!! perfect this is what I need!!!:yay: Thank you

I just had to change Landvehicle by helicopter :bounce3:

Thank you Funican,

I know the editor way to do that,

but I don't want the helicoper and infantry in the same group, they have separte jobs...

Thanks all !!

---------- Post added at 01:01 AM ---------- Previous post was at 01:00 AM ----------

By the way the helicopter sucks in Arma2 compare to OFP & Arma, they just crash on hill, trees, building.

I tried the VFTCAS - Terrain Collision Avoidance System also the flying height 150... But not really better, the funnier is when a Cobra want shoot a tank and finish like a Kamikaze...

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  

×