unitBackpack: Difference between revisions
Jump to navigation
Jump to search
EMSI_bi_wiki (talk | contribs) mNo edit summary |
m (Text replace - "{{uc:{{PAGENAME}}}}" to "{{uc:{{PAGENAME}}}} {{uc:{{PAGENAME}}}}") |
||
Line 46: | Line 46: | ||
[[Category:ArmA 2 OA: New Scripting Commands List|{{uc:{{PAGENAME}}}}]] | [[Category:ArmA 2 OA: New Scripting Commands List|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | |||
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] |
Revision as of 11:42, 2 November 2011
Description
- Description:
- Returns unit's backpack
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
myBackpack = unitBackpack player
- Example 2:
clearMagazineCargo unitBackpack player
- Example 3:
player action ["gear", unitBackpack player]
Additional Information
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
-
If you want to check if the unit have the specific backpack, use this code:
_bag = unitBackpack soldier; _class = typeOf _bag; if (_class == "US_UAV_Pack_EP1") then { - exec this code - };
- if the unit called "soldier" has the backpack with class name "US_UAV_Pack_EP1", code in the brackets will be executed
Bottom Section
Categories:
- Scripting Commands
- Introduced with Arma 2: Operation Arrowhead version 1.52
- Arma 2: Operation Arrowhead: New Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Command Group: Uncategorised
- ArmA 2 OA: New Scripting Commands List
- Scripting Commands ArmA2
- Scripting Commands Take On Helicopters