removeBackpack: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
 
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
 
(66 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma2oa |= Game name
|game1= arma2oa
|version1= 1.50


|1.52|= Game version
|game2= tkoh
____________________________________________________________________________________________
|version2= 1.00


| Removes unit's backpack |= Description
|game3= arma3
____________________________________________________________________________________________
|version3= 0.50


| '''removeBackpack''' unit|= Syntax
|arg= local


|p1= unit: [[Object]] |= Parameter 1
|eff= global


| [[Nothing]] |= Return value
|gr1= Containers
____________________________________________________________________________________________
 
|x1= <pre>removeBackpack this</pre> |= Example 1
|x2= <pre>removeBackpack mySoldierDude</pre> |= Example 2
____________________________________________________________________________________________


| [[addBackpack]], [[addMagazineCargo]], [[addWeaponCargo]], [[clearMagazineCargo]], [[clearWeaponCargo]] |= See also
|descr= Removes unit's backpack


}}
|s1= [[removeBackpack]] unit
 
|p1= unit: [[Object]]
 
|r1= [[Nothing]]


<h3 style="display:none">Notes</h3>
|x1= <sqf>removeBackpack this;</sqf>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>


<h3 style="display:none">Bottom Section</h3>
|x2= <sqf>removeBackpack mySoldierDude;</sqf>


[[Category:ArmA 2 OA: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
|seealso= [[removeBackpackGlobal]] [[backpackContainer]] [[firstBackpack]] [[unitBackpack]] [[backpack]] [[backpackCargo]] [[getBackpackCargo]] [[backpackItems]] [[addBackpack]] [[addBackpackCargo]] [[addBackpackCargoGlobal]] [[clearBackpackCargo]] [[clearBackpackCargoGlobal]] [[clearAllItemsFromBackpack]] [[loadBackpack]] [[backpackSpaceFor]] [[canAddItemToBackpack]] [[addItemToBackpack]] [[removeItemFromBackpack]] [[everyBackpack]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 10:24, 13 May 2022

Hover & click on the images for description

Description

Description:
Removes unit's backpack
Groups:
Containers

Syntax

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

Examples

Example 1:
removeBackpack this;
Example 2:
removeBackpack mySoldierDude;

Additional Information

See also:
removeBackpackGlobal backpackContainer firstBackpack unitBackpack backpack backpackCargo getBackpackCargo backpackItems addBackpack addBackpackCargo addBackpackCargoGlobal clearBackpackCargo clearBackpackCargoGlobal clearAllItemsFromBackpack loadBackpack backpackSpaceFor canAddItemToBackpack addItemToBackpack removeItemFromBackpack everyBackpack

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