removeBackpack: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code>\[\[([a-zA-Z0-9_]+)\]\] ([a-zA-Z0-9_]+);?<\/code>" to "<sqf>$1 $2;</sqf>")
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
 
(2 intermediate revisions by the same user not shown)
Line 24: Line 24:
|r1= [[Nothing]]
|r1= [[Nothing]]


|x1= <code>[[removeBackpack]] [[Magic Variables#this_2|this]];</code>
|x1= <sqf>removeBackpack this;</sqf>


|x2= <sqf>removeBackpack mySoldierDude;</sqf>
|x2= <sqf>removeBackpack mySoldierDude;</sqf>

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