Home   Help Search Login Register  

Author Topic: Problem with the fire command  (Read 1162 times)

0 Members and 1 Guest are viewing this topic.

Offline Blanco

  • Former Staff
  • ****
Problem with the fire command
« on: 28 Jan 2006, 13:25:18 »
Hello,

I want a Polikarkov I16 (FDF 1.4) to fire his cannons via the fire command

I thought a...

plane fire "FDF_airShVAK2x20"

...in a fast loop would do the trick, but it doesn't.

I want to make a straferun script, I put a big trigger over the trenches that activates the firingscript when the plane enters the triggerarea.
Works great with bombs (different plane), but I can't make it work with the cannons.
 



Search or search or search before you ask.

Offline nominesine

  • Former Staff
  • ****
  • I'm NOT back!
    • The IKB Forum
Re:Problem with the fire command
« Reply #1 on: 28 Jan 2006, 13:33:25 »
What happens? Does it fire one shot or does it simply refuse to open fire?

The "one shot" problem:

Fire commands work great for single shot weapons (like bombs, missiles). For automatic weapons however you need to specify the muzzle and firemode (see the comments under Fire in the comref)

The "refuse to fire" problem:

Most likely it's a typo in the FDF-mod manual, regarding weapon names. The fire command usually works for me in similar situations (I have only tried it with BIS vehicles, though)
OFPEC | Intel Depot
RETARDED Ooops... Retired!

Offline Blanco

  • Former Staff
  • ****
Re:Problem with the fire command
« Reply #2 on: 28 Jan 2006, 14:59:49 »
It refuses to fire...
The plane is a Polykarpov I-16 (Cannons)

Checked via a fired EH (names are the same in the FDF readme):

Weapon = "FDF_airShVAK2x20"
Muzzle  = "FDF_airShVAK2x20"
Mode = "FDF_airShVAK2x20"
Ammo = "FDF_airShVAKammo"

I tried  :

plane fire ["FDF_airShVAK2x20"]
Nothing

plane fire ["FDF_airShVAK2x20","FDF_airShVAK2x20"]
Nothing happened

plane fire ["FDF_airShVAK2x20","FDF_airShVAK2x20","FDF_airShVAK2x20"]
Nope

plane fire ["FDF_airShVAK2x20","FDF_airShVAK2x20","FDF_airShVAKammo"]
An errormessage : no entry 'config.ccp/CfgWeapons.FDF__airShVAKammo'

 :-\
Search or search or search before you ask.

Offline nominesine

  • Former Staff
  • ****
  • I'm NOT back!
    • The IKB Forum
Re: Problem with the fire command
« Reply #3 on: 13 Mar 2006, 10:26:14 »
The error message says: "There is no fire mode named FDF_airShVaKammo"

But aparently there is a cfg entry for FDF_airShVaK2x20, because that doesn't produce an error, right?

Have you tried to replace the third parameter with AUTO (the same as for original BIS vehicles)?!?
OFPEC | Intel Depot
RETARDED Ooops... Retired!