Home   Help Search Login Register  

Author Topic: Adding Weapons  (Read 496 times)

0 Members and 1 Guest are viewing this topic.

shadow99

  • Guest
Adding Weapons
« on: 13 Jul 2004, 02:06:47 »
I'm really muddled on all this 'addWeapon' stuff. I think you have to remove a unit's weapons before giving him new ones.

Can someone explain to me how to create the following:
An Officer with a Law Launcher (3 Shells) and an M60 with 4 rounds. If it is possible to give grenades, throw up to 6 of them in as well.

Thank you.

m21man

  • Guest
Re:Adding Weapons
« Reply #1 on: 13 Jul 2004, 02:44:11 »
For starters, you can't carry an M60 and a rocket launcher :P ...

For an M16 with a LAW, it would be (Includes some extra details) :
Code: [Select]
removeallweapons player
player addmagazine "m16"
player addmagazine "m16"
player addmagazine "lawlauncher"
player addmagazine "lawlauncher"
player addmagazine "lawlauncher"
player addmagazine "lawlauncher"
player addweapon "m16"
player addweapon "lawlauncher"
player selectweapon (primaryweapon player)
?(player == (leader group player)): player addweapon "binocular"
exit

You only have ten ammo spaces to fill, so choose your magazines accordingly.
« Last Edit: 13 Jul 2004, 02:51:26 by m21man »

shadow99

  • Guest
Re:Adding Weapons
« Reply #2 on: 13 Jul 2004, 05:38:42 »
Great, thanks. What are the rules though?

You can't carry a rocket launcher with automatics?

Offline Roni

  • Members
  • *
  • Play the Game !
Re:Adding Weapons
« Reply #3 on: 13 Jul 2004, 05:48:28 »
I'm not sure what the "hard" rule is but I've found that you can't carry a LAW or AAW and a machinegun.  Not sure whetehr this is Weapon Class based or some ad hoc rule.



Roni

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Adding Weapons
« Reply #4 on: 13 Jul 2004, 12:12:32 »
There are 5 weapon slots for a soldier type unit

primary (eg M16)
secondary (eg LAW)
ammo (eg magazines, flares or grenades)
handgun + mags (eg Glock)
optics (eg binoculars)

Some types of unit have all four.   Some, like a medic, sniper or civilian do not have a secondary weapon slot.

In general each weapon can fit into only one slot.   Some weapons, like the M60 and PK, take up both primary and secondary slots.   Units without a secondary slot cannot carry them.

Hope that helps.
Plenty of reviewed ArmA missions for you to play