OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: sharkattack on 29 Dec 2008, 11:15:09

Title: take weapon
Post by: sharkattack on 29 Dec 2008, 11:15:09
im  trying to have freed prisoners rearm themselves but  cant seem to find the correct command
in  ofp  is was something  along the lines of 
captive action ["Take Weapon",box,0,0,"AK47"]

is there a similar set up for arma ?

many thanks in advance   :)
Title: Re: take weapon
Post by: Mandoble on 29 Dec 2008, 12:55:48
Code: [Select]
unitname action ["TAKEWEAPON", (vehiclename or unitname or ammoboxname), "WEAPONNAME"]

Make sure you put the correct class of the weapon there.
Title: Re: take weapon
Post by: sharkattack on 29 Dec 2008, 13:15:51
thanks mate ..
works a treat    :)  (AK74)