snkman 351 Posted January 4, 2007 Hi all, can someone tell me please how to do this: I have a Mission, where i like to drop some Paratroopers when im in trouble. I like to call the Heli ( With the Radio ) and than he should fly to my position ( No fix position where ever im in this moment ) and drop some Paratroopers over my position and fly back to the Base. Well i already still know how to let a heli with Paratroopers fly to my position: Im using this: Call Heli But i dont know how to let them Eject without a trigger or Waypoint and how to let the Heli fly back to the base without call it to him... So my only problem is to let the Paratroopers eject and the Heli fly back to the base after he dropped the Paratroopers automatically... Someone can tell me Please? Share this post Link to post Share on other sites
chris330 0 Posted January 4, 2007 You can setpos triggers by the way. Here's an easier method though. Make one that activates when your helicopter is in the trigger area. To ensure only your heli can activate it in the condition field write this: myheli in thislist Where myheli is the name of your helicopter. No other unit west, east, civilian or whatever else can activate it. Only the unit bearing the name myheli can trigger it. Then naturally have an eject script run when the trigger activates for the cargo group in the helicopter. In that script run a check loop to make sure they're all out then instruct the helicopter to return to base in the script using the domove command or even the commandmove provided the pilot isn't in the same group as you. Neither will cause a radio message to show or require you to give the instruction in the field. Share this post Link to post Share on other sites
snkman 351 Posted January 5, 2007 Hi chris330 thank you very much for your replay but if i use your methode i can only let eject the Soldiers in the Cargo of the Heli at a fix position... ( Where i place the trigger ) but i like to call the heli when ever i wand and where ever i'm so i dont like to eject the Paratroopers on ani fix position... Is there a way to let the Paratroopers eject when they are right over me and if possible in 120 meters height? I use this eject script: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_aunits = units Paratrooper1 _i = 0 _j = count _aunits #Here (_aunits select _i) action ["EJECT",CH47D1] unassignvehicle (_aunits select _i) _i=_i+1 ~2 ?_j>_i:goto "Here" exit Share this post Link to post Share on other sites
fasad 1 Posted January 5, 2007 He explained that you can setPos triggers. Make a trigger that can only be tripped by the heli, and make it execute the eject script when tripped. Put the trigger somewhere out of the way, such as the ocean. wait for help request... heliTrigger setPos getPos player heli doMove getPos player wait until trigger is fired heli doMove base you could also use waypoints, and move them with setWPPos. Share this post Link to post Share on other sites
snkman 351 Posted January 6, 2007 Okay now i made a little progress But it still dont work like it should... I did this: Heli Name = H2 My Name = Player1 Trigger with: Activate: Alpha Radio Condition: this On Active: H2 doMove getPos Player1; Now the heli is flying to my position. Very cool But how do i can make them Eject with the Script now? Do i have to create another trigger, where i tell that they should eject, ( With the Script ) when they are over me? How do i do this? Share this post Link to post Share on other sites
fasad 1 Posted January 7, 2007 you need two triggers: 1-for the radio call 2-to start the eject script once the heli is on its way to you, move the 2nd trigger to your location. Use the "myheli in thislist" condition so only the heli can trigger it. in the 2nd triggers on activation field, use [] exec "ejectscript.sqs" you will need to edit the eject script you posted below to use your unit names. To learn a bit about the basics of mission editing, take a look at OFPEC.com and download every tute and script you can. Have a look at how other peoples missions and scripts work. Good luck. Share this post Link to post Share on other sites
snkman 351 Posted January 7, 2007 Thank you very much for your help fasad! I know my knowledge in OFP Editing is very nooby... I will take a good look at OFPEC.com Thank you for the link. The site looks very interesting! Share this post Link to post Share on other sites