removeAllPrimaryWeaponItems: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "____________________________________________________________________________ ________________ " to "____________________________________________________________________________ ")
(Add example)
Line 9: Line 9:
____________________________________________________________________________
____________________________________________________________________________


| Removes all items from weapon except magazine. |DESCRIPTION=
| Removes all items from weapon except magazine. |DESCRIPTION=
____________________________________________________________________________
____________________________________________________________________________


| '''removeAllPrimaryWeaponItems''' unit |SYNTAX=
| [[removeAllPrimaryWeaponItems]] unit |SYNTAX=




Line 20: Line 20:




|x1= <code>
|x1= <code>[[removeAllPrimaryWeaponItems]] [[player]];</code> |EXAMPLE1=  
</code>|EXAMPLE1=  


____________________________________________________________________________
____________________________________________________________________________


| [[addPrimaryWeaponItem]], [[removePrimaryWeaponItem]] |SEEALSO=  
| [[addPrimaryWeaponItem]], [[removePrimaryWeaponItem]] |SEEALSO=  
|  |MPBEHAVIOUR=
____________________________________________________________________________
}}
}}


Line 39: Line 35:


<h3 style='display:none'>Bottom Section</h3>
<h3 style='display:none'>Bottom Section</h3>
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Weapons|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Weapons|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Revision as of 20:53, 5 January 2020

Hover & click on the images for description

Description

Description:
Removes all items from weapon except magazine.
Groups:
Uncategorised

Syntax

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

Examples

Example 1:
removeAllPrimaryWeaponItems player;

Additional Information

See also:
addPrimaryWeaponItemremovePrimaryWeaponItem

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