peppy 10 Posted January 29, 2011 (edited) this is a simple land anywhere script, it will do just that, land any helo and where. Sample Mission. copy & past to a notepad, save in a folder with any name.Chernarus, in your missions folder. Note This Sample shows the Helo Landing on a Dock. version=11; class Mission { addOns[]= { "chernarus", "CAAir" }; addOnsAuto[]= { "CAAir", "chernarus" }; randomSeed=6634123; class Intel { startWeather=0.25; forecastWeather=0.25; year=2008; month=10; day=11; hour=4; minute=20; }; class Groups { items=2; class Item0 { side="WEST"; class Vehicles { items=1; class Item0 { position[]={7070.6265,6.0203533,2189.0115}; azimut=281.58401; special="NONE"; id=0; side="WEST"; vehicle="USMC_Soldier_SL"; player="PLAYER COMMANDER"; leader=1; rank="LIEUTENANT"; skill=0.82744098; }; }; }; class Item1 { side="WEST"; class Vehicles { items=1; class Item0 { position[]={6810.5132,0.023219422,2178.2158}; azimut=81.080101; special="FLY"; id=1; side="WEST"; vehicle="MH60S"; leader=1; skill=0.60000002; text="Helo1"; }; }; class Waypoints { items=1; class Item0 { position[]={7024.8413,6.0199947,2185.0615}; expActiv="Null = [Helo1,7] ExecVM ""Lander.sqf"";"; class Effects { }; showWP="NEVER"; }; }; }; }; class Sensors { items=1; class Item0 { position[]={6995.0313,6.0193253,2181.4912}; activationBy="MEMBER"; interruptable=1; type="SWITCH"; age="UNKNOWN"; idVehicle=1; class Effects { }; }; }; }; class Intro { addOns[]= { "chernarus" }; addOnsAuto[]= { "chernarus" }; randomSeed=9063056; class Intel { startWeather=0.25; forecastWeather=0.25; year=2008; month=10; day=11; hour=9; minute=20; }; }; class OutroWin { addOns[]= { "chernarus" }; addOnsAuto[]= { "chernarus" }; randomSeed=9776974; class Intel { startWeather=0.25; forecastWeather=0.25; year=2008; month=10; day=11; hour=9; minute=20; }; }; class OutroLoose { addOns[]= { "chernarus" }; addOnsAuto[]= { "chernarus" }; randomSeed=1771663; class Intel { startWeather=0.25; forecastWeather=0.25; year=2008; month=10; day=11; hour=9; minute=20; }; }; Mission Sample x2 Helo landing on top Building. (save in folder of any name.utes) version=11; class Mission { addOns[]= { "CAAir", "utes" }; addOnsAuto[]= { "CAAir", "utes" }; randomSeed=12659731; class Intel { startWeather=0.39999998; forecastWeather=0.25; year=2008; month=10; day=11; hour=2; minute=20; }; class Groups { items=2; class Item0 { side="WEST"; class Vehicles { items=1; class Item0 { position[]={3568.0347,28.121769,3649.479}; azimut=-22.595522; id=0; side="WEST"; vehicle="USMC_Soldier"; player="PLAYER COMMANDER"; leader=1; skill=0.60000002; }; }; }; class Item1 { side="WEST"; class Vehicles { items=1; class Item0 { position[]={3534.8264,31.879457,3878.99}; azimut=174.58076; special="FLY"; id=1; side="WEST"; vehicle="MH60S"; leader=1; skill=0.60000002; text="Helo1"; }; }; class Waypoints { items=1; class Item0 { position[]={3517.9788,19,3580.5928}; class Effects { }; showWP="NEVER"; }; }; }; }; class Sensors { items=2; class Item0 { position[]={3495.4089,18.930267,3566.9727}; a=0; b=0; activationBy="ALPHA"; repeating=1; interruptable=1; age="UNKNOWN"; expActiv="Null = [Helo1, 5, 270, 10] ExecVM ""Lander2.sqf"";"; class Effects { }; }; class Item1 { position[]={3517.9495,19,3630.7354}; angle=-90.419296; activationBy="VEHICLE"; interruptable=1; age="UNKNOWN"; idVehicle=1; expActiv="Null = [Helo1, 5, 270, 10] ExecVM ""Lander2.sqf"";"; class Effects { }; }; }; }; class Intro { addOns[]= { "utes" }; addOnsAuto[]= { "utes" }; randomSeed=14708003; class Intel { startWeather=0.40000001; forecastWeather=0.25; year=2008; month=10; day=11; hour=14; minute=20; }; }; class OutroWin { addOns[]= { "utes" }; addOnsAuto[]= { "utes" }; randomSeed=7429690; class Intel { startWeather=0.40000001; forecastWeather=0.25; year=2008; month=10; day=11; hour=14; minute=20; }; }; class OutroLoose { addOns[]= { "utes" }; addOnsAuto[]= { "utes" }; randomSeed=15402884; class Intel { startWeather=0.40000001; forecastWeather=0.25; year=2008; month=10; day=11; hour=14; minute=20; }; }; The Script. Copy and past to a notepad, save as lander2.sqf _heli = _this select 0; // -- Selected Helo _duration = _this select 1; // -- Time to Rotat desierd direction on landing. _dirEnd = _this select 2; // The Direction Facing on Landing. _Heliz = _This Select 3; // The Z value or Height of Touch Down. _Helip = GetPos _Heli Select 2; _dirSTart = direction _heli; _dirDiff = (_dirStart - _dirEnd) / _duration; DoStop _heli; sleep 2; // Changing this Causes some intresting Sideways flying! Critical for Preicition landings. _timeNow = time; _timeFinal = _timeNow + _duration; while {(time) <= _timeFinal} do { _i = (time) - _timeNow; _heli setdir (_dirStart - _dirDiff * _i); //hint str [_i,_dirDiff]; // Debig Info sleep 0.01; while {_Helip > _Heliz} do {_Helip = _Helip -1; _Heli Flyinheight _Helip;}; }; waitUntil {position _heli _Helip == _Heliz}; _Heli action ["engineOff", _Heli]; exit; Enjoy.. PS: its a Newbee script, cuse I am a newbee! cheers. Edited February 1, 2011 by Peppy Share this post Link to post Share on other sites
fro 10 Posted March 15, 2011 Hey Peppy, I am not sure how this is a "precise" landing script. It does make the helo land but in neither of your missions above did the helo land where you said it would. Is it just me? I have been trying to make my own script where I have an endless loop of one helo dropping troops off and coming back to base to get more. I keep getting stuck on the return trip. The helo, before I used your script, wouldn't land. It would come close to its last waypoint and then hover. Your script has made it possible to land the helo, but now the troops won't get into the chopper. Anyway, thanks for the help! Share this post Link to post Share on other sites