Home   Help Search Login Register  

Author Topic: Para drop ideas?  (Read 1867 times)

0 Members and 1 Guest are viewing this topic.

Offline Manzilla

  • Members
  • *
Para drop ideas?
« on: 03 Jun 2009, 19:04:08 »
Alright, I'm making a mission in which the enemy ai have a heli come drop off some more troops when I'm detected in the trigger area. I want to have the ai group i've placed in the cargo of the heli insert via para drop when the heli hits a certain waypoint.

I'm trying to get the method I used in ArmA to work but it doesn't seem to work in A2.

I would just put:
Quote
[GrpE2,HeliE2] exec "para.sqs"
into the pilot wp I wanted the script to execute and the units I had in the cargo of the heli would jump at that time.

The unit leader of the jumping group had this in the init line:
Quote
grpE1 = group this; {_x moveincargo heliE1} foreach units grpE1; {_x assignascargo heliE1} foreach units grpE1;

I also placed this script in my main mission directory:
para.sqs
Code: [Select]
_Group = _this select 0
_Vehicle = _this select 1


_listunits = units _Group

_A = 0
_B = count _listunits
#KEEPSENDING
_listunits select _A action ["EJECT", _vehicle]
Unassignvehicle (_listunits select _A)
_A=_A+1
~.5
?_B >_A:goto "KEEPSENDING"
~.5
MoveNext = TRUE

Does anyone know of a better way to do, and one that works? Having the para drop for this mission is key.

EDIT:

Well my apologies, this method does still work. I had something wrong with the wp setup. But I'm still interested in any other ideas or ways people use for para drops.

« Last Edit: 03 Jun 2009, 19:26:01 by Manzilla »

Offline hoz

  • OFPEC Site
  • Administrator
  • *****
Re: Para drop ideas?
« Reply #1 on: 03 Jun 2009, 21:26:17 »
I do something similar, when the helo gets to it wp, I execute this script. Works well kicks out one unit every .5 seconds, you need to set the helo speed to low...

Code: [Select]
if (local server) then {
_grp = _this select 0;
_chop = _this select 1;
{
_x action["eject", _chop];
sleep .5;
unassignvehicle _x;
} foreach units _grp;
};
Xbox Rocks