Goto Version 1.03
Download
http://www.norrin.org/downloads/ArmA...st103.utes.rar
Description
This simple system of scripts allow you to command an AI piloted chopper to go to a map point where you will disembark via fast-rope insertion or following the landing of the chopper. The chopper will then return to base and refuel, where upon it can be commanded to extract you from another map click position selected by the player.
Tested in ArmA2 version 1.05 on a dedicated server
To add to your mission: (Note some of this has changed)
1. Ensure that the NORRN_DBO_fastrope addon is in the appropriate addon directory
2. Copy the "scripts" folder that contains the "heloGoto" sub-folder folder from the example mission into your mission folder. If you already have a "scripts" folder in your mission then just copy the "heloGoTo" subfolder in to it.
3. To avoid the annoying addon missing pop-up make sure you edit the mission file to include the fast-rope addon
eg in the test mission the
Code:
addOns[]=
{
"CAAir",
"utes",
"cacharacters2",
"CAAir2_UH1Y",
"norrn_dbo_fastrope"
};
4. Create an AI crewed chopper in the editor that is equipped with fast ropes (MH60, UH1 or Mi24) and name it in the editor eg. helo1. Make sure its initial start position is somewhere relatively open - to reduce the possibility of accidental crashing.
5. In the init line of the chopper or in the init.sqf put
Code:
null = [helo1] execVM "scripts\heloGoTo\heloGoTo_init.sqf";
where:
helo1 is the name given to the chopper in the editor
6.If you want to have the ability to call for extraction from mission start (ie. without having used the chopper to get to some location) make sure in the init.sqf file you put some code like:
Code:
player setVariable ["NORRN_FR_gotoHeli", helo1, true];
where:
player - is player or the name given to the playable unit in the editor
helo1 - is the name given to the chopper in the editor
How it works:
1. When a player group leader gets in the chopper in a cargo position an action appears to set the chopper’s fast-rope destination or chopper land destination (chopper will land at this point).
2. Use the action and then a prompt appears to click on the map to set the fast rope destination – choose your destination.
3. The chopper will commence taking off – during the journey to the fast-rope destination the player commander will be given an action to cancel the fast-rope destination – if a player chooses this option the chopper goes into a holding pattern and the player can choose a new fast-rope destination or return to base.
4. Once the fast-rope destination is reached the player and his team will automatically disembark at that location.
5. The chopper will then return to base and refuel. After a few seconds an action will appear for the player group leader to set an extraction point.
6. If this option is chosen the player will need to click on the map to identify a safe location for an extraction site. The chopper will then proceed to this location. Note: this location has to be relatively flat and away from trees and powerlines etc otherwise the chopper will be damaged as it lands and you’ll end up being stuck there.
7. Once the chopper lands it will remain there (with engine running) until the all clear is given.
8. The chopper then lifts off and actions appear in the player group leader’s action list giving the player the option to return to base, set a new fast-rope destination or land destination.
Chopper Destination action.
Works in a similar way to the Fast rope destination, however, the chopper will land at the point designated and will remain there with the engines running until the "all clear" action is given. This will give you plenty of time (if needed) to unload the chopper get gear etc. Once the all clear is given the chopper will automatically return to base.
Changes to extraction system
Extraction works as in the previous system however the chopper will land and remain at the designated point (with the engine running) until the player uses the "all clear action". The chopper will then lift off - once it attains a height of approx 20 metres the action return to base, designate fatrope or landing point then appear.
Using this system you can now use the chopper for MedEVAC or tactical resupply etc
Remember: This is a very simple system – the chopper will fly a straight path to any destination given so flying over enemy troops may end in disaster. Also don’t forget due to the limitations in the AI flight model that the AI piloted choppers do have a tendency to run into mountains and trees, to a certain extent I’ve tried to account for this but take care when setting chopper extraction locations.
Also if you want to set a complex flight path for your chopper while you are on board you can set a destination and then cancel it as you approach it and then set a new destination - that way you can approach a target from an any angle.
License
These scripts are not to be used for commercial purposes or to be modified without the author's prior consent