fire – Talk

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
 
No edit summary
 
(6 intermediate revisions by 5 users not shown)
Line 1: Line 1:
Is this command supposed to work in AA ? I can't get it working either passing weapon name as argument oo array of muzzle / mode. I tried calling selectWeapon before and doTarget/doWatch. Still no luck, unit won't fire on any friendly, empty or enemy target.
I can't get this to work on fixed wing aircraft, only on helicopters and other vehicles, anyone else experiencing this?


Short examples (not working) - unit is WEST rifleman:
[[User:XPaveway|XPaveway]] 01:38, 22 January 2010 (CET)


w = weapons this select 0;
Let's say I want a UH-60 to fire it's rockets. Wick of these parameters goes where in the script?
this doTarget enemy1;
this selectWeapon w;
this fire w;


or
FFARLauncher  38Rnd_FFAR  R_Hydra_HE


this doTarget enemy1;
The above is the classNames for the launncher in question.
this selectWeapon "M4AIM";
/nominesine
this fire "M4AIM";
---
:This should do it:
:unitname fire ["ffarlauncher","ffarlauncher","38Rnd_FFAR"]
 
:[[User:Planck|Planck]] 00:31, 30 March 2007 (CEST)
 
What is the "mode" parameter? All the examples seem to have the mode set to the same string as the muzzle. Is this the case for everything? --[[User:Nomdeplume|nomdeplume]] 11:51, 20 December 2009 (CET)
 
 
From the comment on the actual page it is suggested that the unit has to be local. Perhaps the argument icon should be changed to reflect this? - [[User:Muzzleflash|Muzzleflash]] 13:24, 9 July 2011 (CEST)

Latest revision as of 12:24, 9 July 2011

I can't get this to work on fixed wing aircraft, only on helicopters and other vehicles, anyone else experiencing this?

XPaveway 01:38, 22 January 2010 (CET)

Let's say I want a UH-60 to fire it's rockets. Wick of these parameters goes where in the script?

FFARLauncher 38Rnd_FFAR R_Hydra_HE

The above is the classNames for the launncher in question. /nominesine ---

This should do it:
unitname fire ["ffarlauncher","ffarlauncher","38Rnd_FFAR"]
Planck 00:31, 30 March 2007 (CEST)

What is the "mode" parameter? All the examples seem to have the mode set to the same string as the muzzle. Is this the case for everything? --nomdeplume 11:51, 20 December 2009 (CET)


From the comment on the actual page it is suggested that the unit has to be local. Perhaps the argument icon should be changed to reflect this? - Muzzleflash 13:24, 9 July 2011 (CEST)