Login
OFPEC RSS
Username:
Password:
Not a member yet?
Register for free!
Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Home
›
COMREF
›
A
›
addWeapon
unitName
addWeapon
weaponName
Operand types
unitName
:
Object
weaponName
:
String
Type of returned value
Nothing
Description
Add weapon to unit.
Note: You can create invalid combinations with this function, for example by adding two rifles.
When doing so, application behaviour is undefined.
Used In
OFP/ArmA
Example
player addWeapon "AK74"
Types
Arrays
Scripting Topics
BIS Functions
Arma2 CfgVehicles
Arma2 Weapons
ArmA CfgVehicles
ArmA Weapons
OFP CfgVehicles
OFP Weapons
- Select Game -
List All
Arma2:OA Only
Arma2 Only
ArmA Only
Elite
Original OFP
- Select Type -
objects
units
groups
vehicles
weapons
markers
environment
game
dialogs
cutscenes
sound
mathematics
variables
script commands
multiplayer
3D editor
Top of page