View Full Version : Editor Question
eraiders
Jun 6 2009, 05:51
Hey, I have been having an absolute blast creating large scale battles and just watching the destruction in the editor ex lots of anti air units vs an armada of planes.
My question is, I would love to drop like a hundred paratroopers out of few C130s onto a battlefield but I can't get the units to appear loaded already into the C130. I tried having their options as "In Cargo" and put them ontop of the planes that are in the air, but that doesn't work.
Can someone let me know how to get those units preloaded and what waypoints I need to set them at to get them to jump out or eject?
I doubt the syntax has changed much since Arma, but if I'm wrong I'm sure someone will correct me.
Add this to the init of your group leader
{_x moveincargo PLANE NAME} forEach units GROUP NAME
At least that's what I think it is offhand. I'm rusty.
Obviously plane name = whatever you named the C-130 and group name = the name assigned to the group in question.
And you'll probably need to write a script if you want them all to drop at once. At least that's how it had to be done in OFP.
Sniperwolf572
Jun 6 2009, 07:49
Mooooviiiin.
In arma it was a line of code in the waypoint or trigger to make the ai bail out at the waypoint/trigger.
Not sure if its the same for arma 2,not been able to test?
Link to my topic on Ofpec:-
http://www.ofpec.com/forum/index.php?topic=31899.0
])rStrangelove
Jun 6 2009, 08:00
1. Give your C130 a name, like "myC130"
2. Select the leader of your paratrooper group and paste this into the init field:
{_x moveincargo myC130} forEach units group this
3. Give your C130 2 move waypoints. Paste this into the OnActivation field of the 2nd waypoint:
{_x action["EJECT",myC130]; unassignvehicle _x} foreach (assignedCargo myC130);
dale0404
Jun 6 2009, 10:27
They dont jup out at the second waypoint, do you have to set a certain height for the planes to fly at first?
I tested it by being a member of 1 of the groups, they all stayed in the plane, also I placed myslef on the ground at the second wp, planes just flew straight on past without people jumping out.
])rStrangelove
Jun 6 2009, 11:11
I tested it, my example works.
Here is my mission:
http://www.file-upload.net/download-1685882/test_Airdrop.zip.html
dale0404
Jun 6 2009, 12:14
It certainly does mate, I was trying to use 2 C130s, not sure what I did wrong.
Ty btw
])rStrangelove
Jun 6 2009, 12:26
Then you need 2 different names for the 2 planes, and use the 2nd name with the same commands again.
dale0404
Jun 6 2009, 12:46
Yep I did that but I also syncronised the planes, does that matter?
])rStrangelove
Jun 6 2009, 13:41
I wouldn't sync them, i can't say if it causes problems.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.