From Bohemia Interactive Community
|
|
Line 32: |
Line 32: |
| <dl class="command_description"> | | <dl class="command_description"> |
| <!-- Note Section BEGIN --> | | <!-- Note Section BEGIN --> |
| --[[User:Cookj71|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";
| |
|
| |
|
| <!-- Note Section END --> | | <!-- Note Section END --> |
Revision as of 22:50, 14 August 2007
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
Bottom Section