Jump to content
Sign in to follow this  
Steaksauce1337

Make A-10 fire with selected weapon

Recommended Posts

Any way to make the A-10 fire with just the gun or rockets? I have not been able to find a classname for the GAU.. maybe am just not looking hard enough

Share this post


Link to post
Share on other sites

weapons

"GAU8"

"SidewinderLaucher_AH1Z"

"MaverickLauncher"

"BombLauncherA10"

"FFARLauncher_14"

magazines

"1350Rnd_30mmAP_A10"

"2Rnd_Sidewinder_AH1Z"

"2Rnd_Maverick_A10"

"4Rnd_GBU12"

"14Rnd_FFAR"

Share this post


Link to post
Share on other sites

i suggest not using the fire command.. and btw you dont fire magazine name.. you fire selected weapon. :)

the fire command has a tend to not fire some weapons "this was the case in ArmA 1"

anyway here is the correct way to force fire of A-10 weapon(s)

Name of plane is A10:

A10 action ["useWeapon",vehicle A10,driver vehicle A10,0]

the last zero is weapon selection.. if you put 1 in there you will get weapon nr 2 on the plane :)

if you want to use the fire command and for example only want rockets fired in a intro or whatever. you need to switch the weapon

A10 action ["SWITCHWEAPON", vehicle A10, vehicle A10, 1];
A10 fire "SidewinderLaucher_AH1Z";

or

A10 selectWeapon "SidewinderLaucher_AH1Z";
A10 fire "SidewinderLaucher_AH1Z";

hope this helps..

Edited by nuxil

Share this post


Link to post
Share on other sites

I can get the A10 to fire the GAU, but it only fires one round, bit pointless, how can i get it to fire a long burst?

Share this post


Link to post
Share on other sites

a simple loop ? or set the mode on the fire command; fire [weapon, mode] ?

Share this post


Link to post
Share on other sites

If you're trying to get him to ATTACK something, just remove his other weapons. Otherwise trying to force him to shoot's gonna be messy.

Share this post


Link to post
Share on other sites

Try this:

A10 selectWeapon "GAU8";

A10 fire "GAU8";

Share this post


Link to post
Share on other sites

playsound "airstrike_request";

~0.5

TitleText ["You: Sigma team to USS Polyphem. Requesting airstrike on following coordinates. Over.","Plain Down"];

setfire=true;

titleText ["Click on the map to set your firedirection","plain down"];

onMapSingleClick "ASTarget setPos _pos; setfire=false";

@!setfire;

"Firedirection" setmarkerpos getPos ASTarget;

onMapSingleClick "";

titleText ["", "plain down"];

~7

playsound "airstrike";

~0.5

TitleText ["fire control : Sigma team this is USS Polyphem fire control. Coordinates received. Airstrike is on the way. Out.","Plain Down"];

_dropPosition = getpos ASTarget;

~0.5

_dropPosX = _dropPosition select 0;

_dropPosY = _dropPosition select 1;

_dropPosZ = _dropPosition select 2;

~0.1

_planespawnpos1 = [_dropPosX - 5000, _dropPosY - 2000, _dropPosZ + 2060];

_pilotspawnpos1 = [_dropPosX - 5000, _dropPosY - 2000, _dropPosZ + 2060];

_planespawnpos2 = [_dropPosX - 5030, _dropPosY - 2030, _dropPosZ + 2030];

_pilotspawnpos2 = [_dropPosX - 5030, _dropPosY - 2030, _dropPosZ + 2030];

_planespawnpos3 = [_dropPosX - 5060, _dropPosY - 2060, _dropPosZ + 2000];

_pilotspawnpos3 = [_dropPosX - 5060, _dropPosY - 2060, _dropPosZ + 2000];

_PlaneA = creategroup WEST;

_plane1 = createVehicle ["A10",_planespawnpos1,[], 0, "FLY"];

_plane1 setPos [(getPos _plane1 select 0),(getPos _plane1 select 1),2060] ;

_plane2 = createVehicle ["A10",_planespawnpos2,[], 0, "FLY"];

_plane2 setPos [(getPos _plane2 select 0),(getPos _plane2 select 1),2030] ;

_plane3 = createVehicle ["A10",_planespawnpos3,[], 0, "FLY"];

_plane3 setPos [(getPos _plane3 select 0),(getPos _plane3 select 1),2000] ;

_leader = "USMC_Soldier_Pilot" createUnit [getMarkerPos "Firedirection", _PlaneA, "leader1=this"];

_p2 = "USMC_Soldier_Pilot" createUnit [getMarkerPos "Firedirection", _PlaneA, "P2=this"];

_p3 = "USMC_Soldier_Pilot" createUnit [getMarkerPos "Firedirection", _PlaneA, "P3=this"];

_Plane1 setVelocity [100,0,0] ;

_Plane2 setVelocity [100,0,0] ;

_Plane3 setVelocity [100,0,0] ;

~0.4

leader1 moveinDriver _plane1;

leader1 setDamage 0;

leader1 action ["gear_up", vehicle leader1] ;

P2 moveinDriver _plane2;

P2 setDamage 0;

P2 action ["gear_up", vehicle P2] ;

P3 moveinDriver _plane3;

P3 setDamage 0;

P3 action ["gear_up", vehicle P3] ;

_plane1 flyinHeight 1273;

_plane1 setSpeedMode "LIMITED";

_plane2 flyinHeight 1254;

_plane2 setSpeedMode "LIMITED";

_plane3 flyinHeight 1236;

_plane3 setSpeedMode "LIMITED";

#CHECK

leader1 doMove getPos ASTarget;

leader1 doTarget ASTarget;

leader1 doWatch ASTarget;

? (_plane1 distance ASTarget) < 1460 : goto "DROP"

P2 doMove getPos ASTarget;

P2 doTarget ASTarget;

P2 doWatch ASTarget;

? (_plane2 distance ASTarget) < 1430 : goto "DROP"

P3 doMove getPos ASTarget;

P3 doTarget ASTarget;

P3 doWatch ASTarget;

? (_plane3 distance ASTarget) < 1400 : goto "DROP"

goto "CHECK"

#DROP

_i = 0

_plane1 flyInHeight 786;

_plane1 setPos [(getPos _plane1 select 0),(getPos _plane1 select 1),100] ;

_plane2 flyInHeight 775;

_plane2 setPos [(getPos _plane2 select 0),(getPos _plane2 select 1),100] ;

_plane3 flyInHeight 763;

_plane3 setPos [(getPos _plane3 select 0),(getPos _plane3 select 1),100] ;

~13

#FIRE

_i=_i+1

_plane1 selectWeapon "FFARLauncher_14";//<--error

_plane1 fire "FFARLauncher_14";//<--error

_plane2 selectWeapon "FFARLauncher_14" ;//<--error

_plane2 fire "FFARLauncher_14";//<--error

_plane3 selectWeapon "FFARLauncher_14";//<--error

_plane3 fire "FFARLauncher_14";//<--error

~0.2

? _i <= 6 : goto "FIRE"

~0.6

_plane1 say "jet1";

~0.5

_plane2 say "jet2";

~0.5

_plane3 say "jet3";

ASTarget setPos [0,0,0];

"Firedirection" setMarkerPos [0,0];

_plane1 setSpeedMode "FULL"

_plane2 setSpeedMode "FULL"

_plane3 setSpeedMode "FULL"

~4

_plane1 flyInHeight 1273;

P1 doMove getPos ASTarget;

_plane2 flyInHeight 1254;

P2 doMove getPos ASTarget;

_plane3 flyInHeight 1236;

P3 doMove getPos ASTarget;

~200

deleteVehicle _plane1;

deleteVehicle _plane2;

deleteVehicle _plane3;

deleteGroup _PlaneA

deleteVehicle P1;

deleteVehicle P2;

deleteVehicle P3;

exit

Edited by DrF33lGood

Share this post


Link to post
Share on other sites

_plane1 action ["useWeapon",vehicle _plane1,driver vehicle _plane1,8]

Fires 1 FFAR Rocket

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  

×