MrZig 0 Posted September 2, 2003 I'm making a mission, but need some help, please. So far, your a prisoner in a heli, and you crash land, and I want east soldiers to get your position and chase you. Or a bmp to chase you. And this may be too advanced, but a script that when your detected, say at a town, someone sees you and then a russian heli comes and parachutes men at your pos, or a bmp comes to your pos. Thanks, -MrZig Share this post Link to post Share on other sites
the_unknown_one 0 Posted September 2, 2003 im not sure about towns or lots of ppl... but you could do <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">Condit of trigger: ?(ruskieguard1 knowsabout player)>=3 OnActiv:[] exec "follow.sqs" in follow.sqs: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> #follow1 heli1 domove getpos player Bmp1 domove getpos player leader ruskiegroup1 domove getpos player ;oh, plus a wait so there's no infinite loops ~0.01 goto "follow1" exit this may be too simple, but its a basic idea i spose. the_unknown_one Share this post Link to post Share on other sites
MrZig 0 Posted September 2, 2003 What about for the heli group to eject when they are close enough? Is that too advanced? Like somehow enter a radius of like what? 20 Meters or so, and load another script that tells em to eject and follow player? That would be great. Share this post Link to post Share on other sites
Skul 0 Posted September 3, 2003 Well there are more than enough posts about ejecting a squad from a heli. As for the 20m thing. Do you mean 20m from the crash site or 20m from the player? If it's the player's position, then you'll have to search for it (99% chance of being shouted at to search if you don't). Same goes for the heli ejecting thingummy. But, seeing as I'm such an incredibly nice bugger, I'll post a couple of solutions I got ages ago. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">PARACHUTING ***First of all: To have the squad on the chopper*** For this, there are 2 possibilities Teleportation or normal get in To load an infantry group in a chopper 1-Create a UH60 (example), edit its properties and put its special on Flying 2- Select this chopper and create for it a LOAD waypoint at the point you want it to load an infantry squad 3-Create another waypoint, a MOVE one for a destination for the blackhawk 4- Create an infantry Group 5- Select the officer and make for him a GET IN waypoint very near to the LOAD waypoint of the UH60 6- Click on the Synchronize button of the menu , on the top of the screen 7- By pressing your mouse button on one of those 2 waypoints, draw a link between the GET IN and the LOAD waypoint. It will draw a blue line between them To direct teleport the infantry group in the chopper cargo 1- Create a UH60 (example), name it (for this example) HELICO and edit its properties and put its special on Flying 2- Create an infantry Group 3- Select and edit the officer properties and at its init line put this TEAM1=group this; "_x moveincargo HELICO" foreach units TEAM1 This will name all the squad TEAM1 (for this example) and teleport every member of this squad named TEAM1 in cargo position of the UH60 named HELICO If you want to move only one unit instead of a squad edit the properties of the soldier you want to teleport in the UH60, name it BOB (for this example) and at its init line type this BOB moveincargo HELICO ------Now you have your squad on the UH60------ Now let's eject the squad from the UH60 1-Create a MOVE waypoint for the chopper far away (so the chopper will move), the best is to set the following in the properties of this waypoint. Speed:  Limited Combat Mode: Never Fire Behaviour: Careless 2- At the point you want the squad to eject from the chopper, create a trigger (of course the trigger must be on the line of the UH60 to the MOVE waypoint) At the line Activation, select WEST At the line On Activation put this cmd="EJECT"; "_x action [cmd,HELICO]" foreach units TEAM1; "unassignvehicle _x" forEach units TEAM1 with that the whole team named TEAM1 (the example from the beginning) will eject themselves and open their parachute And with the unassgnvehicle code they will not be linked to the UH60 anymore (if you don’t put that part, after landing, the squad will follow the chopper to get in again) If you want only the soldier of the example up there to be ejected, the line will be this cmd="EJECT"; BOB action [cmd,HELICO]; unassignvehicle BOB this will eject the soldier named BOB from the UH60 named HELICO and again with the unassignvehicle code, BOB will not try to get in the UH60 again after landing. Note: With that whole squad parachute usage, sometime you will notice that some parachute will burn and their users will die before landing. Note 2, you will notice too that the chopper will only fly to a specific altitude, not very high (30-40 m I think), if you want it to fly higher, edit the properties of the UH60 of this example up there and put that in the On Activation line this flyinheight 150 or (the result is the same) HELICO flyinheight 150 This will force your UH60 to fly up to 150m altitude, then it will follow its waypoint And your squad will parachute from higher Note 3 If you make yourself as the officer of the squad up there, it will not work like this, you will have to use your command menu ingame to order your men to disembark or to get in But if you are a part of the squad (and not the officer), it will work Phew! Copy and paste this into a document for later reference. Hope this helps! [Gareth Gates must die] Share this post Link to post Share on other sites
MrZig 0 Posted September 3, 2003 Okay thanks. I have everything configured now, you get in, you crash land, ai chopper comes to crash site ejects guys, they do a few waypoints, go in bmp and leave. Now I shall search for the 20 M from player thing. Share this post Link to post Share on other sites
MrZig 0 Posted September 3, 2003 Well, basicly all I want is a personal script like the_unknown_one's. His is fine for say, a bmp or a group of soldiers (thanks again man) but it doesn't work for a helicopter parachuting a group of soldiers on you. I am no scripter, so can someone make a script which when heli1 is 20 or so metres away from player it loads jump2.sqs? Thanks! Share this post Link to post Share on other sites