Jump to content
Sign in to follow this  
Nico1544

Eject script ?

Recommended Posts

Hello everyone ,im making a new map and i need a script to eject all my team of the plane ,can someone help me please ?

Share this post


Link to post
Share on other sites

Share this post


Link to post
Share on other sites

Hello ,i tried some script BUT its only work when im in the plan ,i wanted to make an massive airdrop parachute

Edited by Nico1544

Share this post


Link to post
Share on other sites

click on the ParaReinforce in my sig, on top of post 1 is a very simple eject/paradrop script.

Share this post


Link to post
Share on other sites

Ejecting troops from a plane is very easy! The fact that "nothing works" suggests to me that you need to do a little more reading. It appears that you know so little that it would be hard to help you.

As mentioned above....read Mr. Murrays editing guide!

You must understand the fundamentals before any help will make sense to you!

Share this post


Link to post
Share on other sites

Ok ,im sorry for the bad post ,i found some script BUT when i use them ,its only eject me ,i want it to eject all my squad

Edited by Nico1544

Share this post


Link to post
Share on other sites

Ok so i readed the Mr.Murray guide and its working for me and my squad, but why all the other guy dont parachute ? its only working for 1 squad ?

Edited by Nico1544

Share this post


Link to post
Share on other sites

Hmmm...let's see. Maybe you only executed the script on one squad....but I'm sure you could have probably figured that out yourself.

Post the code you're using... let's see what's wrong with it.

Share this post


Link to post
Share on other sites

Ok so this is what im using in the waypoint for the first squad

Soldier1 action ["Eject", Heli1];Sd1 action ["Eject", Heli1];Sd2 action ["Eject", Heli1];Sd3 action ["Eject", Heli1];Sd4 action ["Eject", Heli1];Sd5 action ["Eject", Heli1]

And this is what im using for the squad 2

Soldier2 action ["Eject", Heli2];Sb1 action ["Eject", Heli2];Sb2 action ["Eject", Heli2];Sb3 action ["Eject", Heli2];Sb4 action ["Eject", Heli2];Sb5 action ["Eject", Heli2]

Share this post


Link to post
Share on other sites

Here mate...I did a little demo mission for you.

http://www.mediafire.com/?xt454fp9xyzi230

Unzip the file and place the unzipped folder in your missions folder. The missions folder should be in your My Documents\Arma 2\ folder

You Should end up with a folder called My Documents\Arma 2\missions\Test_Para_Drop.utes

Load it into the editor and run it.

Look at the what happens in the demo... then look at the waypoints, code and comments and see if you can follow it.

You cannot do what you want to do without scripts and some scripting knowledge.

Edited by twirly

Share this post


Link to post
Share on other sites

Ok thanks im testing it tonight

---------- Post added at 11:43 PM ---------- Previous post was at 11:04 PM ----------

Ok i tested it all work ,but why when i put this in the Init of the AI nothing work ? {_x moveincargo } foreach units ?

Share this post


Link to post
Share on other sites

{_x moveincargo [b]VEHICLENAME[/b]} foreach units [b]group this;[/b]

read the guide by MR Murray, its a pdf so you can search through it for keywords like "moveInCargo"

Share this post


Link to post
Share on other sites

yeah i know this script ,but when i use it and i want alot of unit to drop with parachut ,but its just dont work ,its work only with 1 plane

Edited by Nico1544

Share this post


Link to post
Share on other sites

Use the example mission I posted for you and make more planes.... more groups.... and more waypoints....and copy the existing scripts. Simply give the new groups and planes new names....do some copying and pasting and fiddling with the scripts and use the new names.

If that also doesn't work.... go back to Post #2!

It's becoming hard to understand why you can't follow this!

EDIT:

Here's another example I found that I had done for someone some time ago... http://www.mediafire.com/?sj170sq0bjw4mde

Still only one plane... so you are going to have to figure out the rest!

Edited by twirly
Added stuff

Share this post


Link to post
Share on other sites

Ok ,thanks guys for your nice help ,im sorry if im annoying ,but its all new ,but ill get into it and read the mr.murray guide!

Share this post


Link to post
Share on other sites

Keep trying and keep reading. Lots of reading.... it will take some time but eventually things will start to make sense.

Share this post


Link to post
Share on other sites

Im trying to send you my misson but its not working ,because its not working again

Edited by Nico1544

Share this post


Link to post
Share on other sites

I got some code in an email...you must have put it here and then removed it.

I see you had two init.sqf's. Well you can only have one. It is executed once at mission start.

Here is basically what you need. This test mission has three planes and nine groups.... three in each plane. There are many different ways to do this. This is just one approach.

http://www.mediafire.com/?9b7oyo7t79n2cjz

You've spent a lot of time on this... so should be able to figure out what's happening. Good luck!

Share this post


Link to post
Share on other sites

that code can be reduced:

{_x action ["Eject", Heli1]} foreach (units grp1) + (units grp2)

assuming you named both groups as grp1 and grp2

Share this post


Link to post
Share on other sites

Wow ,just amazing the map you made for me i might be able to learn with this one .thanks!

---------- Post added at 08:19 PM ---------- Previous post was at 08:02 PM ----------

ITS WORK YES!!!! Thank you so much!!

Share this post


Link to post
Share on other sites

That's good. Welcome to your infinite trip down the Rabbit Hole!

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  

×