Jump to content
Sign in to follow this  
fighterman

helicopter support

Recommended Posts

hi i was wondering if anyone knows how to get an apache, cobra or any other helicopter to come to a custom place and provide gunship support. :)

Share this post


Link to post
Share on other sites

Spawn whatever you need (BIS_fnc_spawnVehicle comes in handy for example) and give it the needed waypoint. Done.

Share this post


Link to post
Share on other sites

The noob way of doing it is placing the chopper then placing another waypoint very close which is sync'd to a trigger activated on Radio Alpha. Then place the other waypoints in the locations you want. It isn't as efficient as a script or anything but it works if you just want some (very) simple support.

Share this post


Link to post
Share on other sites

i know how to do it the noob way but how would i use a premade chopper to do it

Share this post


Link to post
Share on other sites

Is your premade chopper flying already or is it on the airfield empty?

I would do it by having a script activated by a radio command that gave the chopper a search and destroy waypoint on either a mapclick or the placement of smoke etc. Assuming it didn't have anything better to do at the time it would just fly to that place and kill things.

Share this post


Link to post
Share on other sites
Is your premade chopper flying already or is it on the airfield empty?

I would do it by having a script activated by a radio command that gave the chopper a search and destroy waypoint on either a mapclick or the placement of smoke etc. Assuming it didn't have anything better to do at the time it would just fly to that place and kill things.

flying already

Share this post


Link to post
Share on other sites

So.

Use a script that would move a marker or invisible H to where you want the chopper to go, using onmapclick and then have the chopper assigned a SAD waypoint on that marker/h .

The following should work, you'll need a visible marker called "helowaypointmarker" that shows you where the chopper should be going on the map and an invisible H called "hwp1". Replace NAME with either the groupname of the helo pilot or the unit name of the chopper if you've placed a piloted one with the editor.

sethelowaypoint=true;
titleText ["Click on map to set waypoint","plain down"];
onMapSingleClick "hwp1 setPos _pos; sethelowaypoint=false";
@!sethelowaypoint;
"helowaypointmarker" setmarkerpos getPos hwp1;
onMapSingleClick "";
titleText ["", "plain down"];

Chopperwaypoint1 = NAME addwaypoint [position hwp1, 20];
Chopperwaypoint1 NAME setwaypointtype "SAD";
Chopperwaypoint1 setwaypointspeed "Normal";

Share this post


Link to post
Share on other sites

Save it as somescriptname.sqf and call it in your mission. Put a trigger down that is activated by radio alpha or whatever and in the "on act" box type [] exec "somescriptname.sqf";

Share this post


Link to post
Share on other sites

cheers ill give it a go now

---------- Post added at 09:54 PM ---------- Previous post was at 09:48 PM ----------

so i put the script on notepad and put that file in the mission folder

Share this post


Link to post
Share on other sites

Yup, just make sure it's named somescript.sqf instead of somescript.sqf.txt

Share this post


Link to post
Share on other sites
ROFL

Don't you hate notepad sometimes

In windows 7/vista, open a folder then click

Organize -> Folder and Search Options -> View (Tab) -> Uncheck "Hide Extensions for Known File Types

That will prevent that from happening again

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×