Julian 0 Posted June 4, 2006 Hi all  How do I set up a multiple paradrop. I'm trying to make a mission, ww2 by the way, I'm using the c47 which has a sqs, but i want to make a simple eject script that you can put into the activation field of a trigger, and have multiple c47's  eject their paratroopers? c47,c47_1 ect  I know this but what is the eject script? Share this post Link to post Share on other sites
mattxr 9 Posted June 4, 2006 i had a cool script from opec which did exactly that.. i used it on the ch-47s but i lost it and opec went bye bye so i lost it forever proberly now.. im really needing it to complete a campaign. Share this post Link to post Share on other sites
sanctuary 19 Posted June 5, 2006 You can do it by trigger with a <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">"_x action [{EJECT},NameofPlane]" foreach units NameofGroup; "unassignvehicle _x" forEach units NameofGroup But it is very bad, as most of the time you will have 2/3 soldiers that will die when ejecting. It is a lot better to use an ejection script like this one <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">; usage ; [nameofgroup,nameofplane] exec "nameofscript.sqs" _grp = _this select 0 _veh = _this select 1 _par = units _grp _i = 0 _j = count _par ~(random 3) #loo unassignvehicle (_par select _i) (_par select _i) action ["EJECT",_veh] _i=_i+1 ~.5 ?_j>_i:goto "loo" exit and replace the .5 by the amount of seconds you want between each paratroopers being ejected. Share this post Link to post Share on other sites
Julian 0 Posted June 5, 2006 hey thanks for the response guys, isn't there an easier way something small and simple? Share this post Link to post Share on other sites
wheres my rabbit ? 10 Posted June 5, 2006 hey thanks for the response guys, isn't there an easier way something small and simple? Share this post Link to post Share on other sites
Julian 0 Posted June 6, 2006 I mean is there a small eject script that i can put in the activation line in a trigger or waypoint. Share this post Link to post Share on other sites
sanctuary 19 Posted June 6, 2006 Quote[/b] ]I mean is there a small eject script that i can put in the activation line in a trigger or waypoint. ... Quote[/b] ]You can do it by trigger with a<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">"_x action [{EJECT},NameofPlane]" foreach units NameofGroup; "unassignvehicle _x" forEach units NameofGroup how about just copy pasting this in a trigger, replacing first the placeholders with the correct group and plane names ? In the case you don't know, using CTRL + C (copy) and CTRL + V (paste) allow you to use the copy then paste function inside the OFP editor, so you don't have to type all of that by memory. Share this post Link to post Share on other sites
wheres my rabbit ? 10 Posted June 6, 2006 I mean is there a small eject script that i can put in the activation line in a trigger or waypoint. yes the one sanctuary has just given you....it probably took him longer to right that post than it would take you to implement it in your mission copy n paste it the scipt into notepad and save it as "eject.sqs" put this file in your mission folder name the plane then name your groups eg. group1 = group this <--that in leaders init then run the script from the waypoint you want them to eject at [group1,nameofplane] exec "eject.sqs" Share this post Link to post Share on other sites
Julian 0 Posted June 6, 2006 Thanks guys, I'll give it a try, and let you know when I get it done and working. Share this post Link to post Share on other sites
mattxr 9 Posted June 11, 2006 hmm that script doesnt work, i get an error: Quote[/b] ]_par = units _grp|#|': Error units: Type Array, Expected Object,Group My Group is Quote[/b] ]group1 = units group this; "_x moveInCargo plane1" foreach group1 anyhelp Share this post Link to post Share on other sites
TeRp 1 Posted June 11, 2006 hmm that script doesnt work, i get an error:Quote[/b] ]_par = units _grp|#|': Error units: Type Array, Expected Object,Group My Group is Quote[/b] ]group1 = units group this; "_x moveInCargo plane1" foreach group1 anyhelp <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">group1 = units group this; "_x moveInCargo plane1" foreach group1 should be <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">group1 = group this; "_x moveInCargo plane1" foreach unit group1 Share this post Link to post Share on other sites
mattxr 9 Posted June 11, 2006 <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">group1 = group this; "_x moveInCargo plane1" foreach unit group1 Thats wrong, i get an error saying unknown group. Share this post Link to post Share on other sites
TeRp 1 Posted June 11, 2006 group1 = group this; "_x moveInCargo plane1" foreach units group1 Share this post Link to post Share on other sites
Garcia 0 Posted June 11, 2006 if that doesn't work, try: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">group1 = group this; "_x moveInCargo plane1" foreach units (group this) Share this post Link to post Share on other sites
Julian 0 Posted June 11, 2006 Hey guys it works! what about this one? cmd="EJECT";_x action[cmd,helo]" foreach units paras Share this post Link to post Share on other sites
sanctuary 19 Posted June 11, 2006 Hey guys it works! what about this one? cmd="EJECT";_x action[cmd,helo]" foreach units paras are you paying attention to the answers you got ? <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">"_x action [{EJECT},NameofPlane]" foreach units NameofGroup; "unassignvehicle _x" forEach units NameofGroup is better But the script is even a lot better. Share this post Link to post Share on other sites