removeAllWeapons

From Bohemia Interactive Community
Revision as of 22:41, 14 August 2007 by Cookj71 (talk | contribs)
Jump to navigation Jump to search


Hover & click on the images for description

Description

Description:
Remove all weapons and magazines of the unit. On vehicles only ammo is removed
Groups:
Uncategorised

Syntax

Syntax:
removeAllWeapons unit
Parameters:
unit: Object
Return Value:
Nothing

Examples

Example 1:
removeAllWeapons player

Additional Information

See also:
See also needed

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

--Cookj71 22:41, 14 August 2007 (CEST)

ArmA Example

Here is a script that strips all items/weapons off a unit and fills in a custom "West Heavy Sniper" build out. This is an excellent example of usage. This is script code within the editor not a pure script file. There is missing, " , and other little code snipets if trying to use outside of the built in Editor. Only use this within the ArmA built in editor. --> Unit --> Inialization

West Heavy Sniper

removeallweapons this; this addweapon "binocular"; this addweapon "nvgoggles"; this addweapon "m9sd"; this addweapon "m136"; this addmagazine "15rnd_9x19_m9"; this addmagazine "15rnd_9x19_m9"; this addmagazine "15rnd_9x19_m9"; this addmagazine "m136"; this addmagazine "m136"; this addweapon "M107"; this addmagazine "10rnd_127x99_m107"; this addmagazine "10rnd_127x99_m107"; this addmagazine "10rnd_127x99_m107"; this addmagazine "10rnd_127x99_m107"; this addmagazine "10rnd_127x99_m107"; this addmagazine "10rnd_127x99_m107"; this addmagazine "10rnd_127x99_m107"; this addmagazine "10rnd_127x99_m107";

Bottom Section