Home   Help Search Login Register  

Author Topic: Mavericks  (Read 613 times)

0 Members and 1 Guest are viewing this topic.

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Mavericks
« on: 21 Jul 2004, 10:33:42 »
ok... i read the command reference, and this is what i came up with for force firing a maverick missile:

plane fire ["MaverickLauncher", "Maverick", "Maverick"]

when that is used tho, it errors saying that there is no entry for cfgweapons maverick.... so im totally confused now - does anyone know the correct synthax?
Proud Member of the Volunteer Commando Battalion

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:Mavericks
« Reply #1 on: 21 Jul 2004, 11:52:20 »
I don't think you can use the fire function on vehicles, only men... :(

At least I have never seen that you could choose a firemode in a vehicle...
which would be 'single', 'burst' or 'auto'...

You got the error probably because there's no firemode called Maverick...

I think you better use the the combination of doTarget and doFire...
And to get the plane to use Mavericks just remove all the other ammo and give it back afterwards...

Dunno if it works though...
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:Mavericks
« Reply #2 on: 21 Jul 2004, 12:56:30 »
no... i can make apache's fire their hellfires... so it is possible, just seems the command reference has the names wrong?
Proud Member of the Volunteer Commando Battalion

Offline Platoon Patton

  • Members
  • *
  • "Barbecue" CreateVehicle getpos LLama
Re:Mavericks
« Reply #3 on: 21 Jul 2004, 13:41:55 »
Mavericklauncher,Maverick is correct.

But the cannon name isnt,its Machinegun30A10Burst.

this addeventhandler ["fired" ,{hint format["weapon:%1\nammo:%2",(_this select 1),(_this select 4)]}] is the way to find it.

Somebody with alot of spare time should check all vehicles  ;D
http://www.platoon-clan.com/ We always wellcome dedicated OFP players :)

http://www.european-combat-league.com/index.php To play with us in the best OFP league ;)

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:Mavericks
« Reply #4 on: 21 Jul 2004, 13:45:35 »
no... worked it out in the end  Hater_kint was kinda on the money... basically you only pass arrays with 'fire' for units. for vehicles it just needs the launcher name in a string:

plane fire "MaverickLauncher"

the command reference needs updating to reflect this i think  :)
Proud Member of the Volunteer Commando Battalion