addBackpackCargo

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 2: Operation Arrowhead version 1.55
  Arguments of this scripting command don't have to be local to the client the command is executed onEffects of this scripting command are not broadcasted over the network and remain local to the client the command is executed on

Click on the images for descriptions

Introduced in

Game:
Arma 2: Operation Arrowhead
Version:
1.55

Description

Description:
Add backpack(s) to the cargo space of vehicle. Classname list of available backpacks is here.
Arma 3 logo black.png In Arma 3, arguments for this command must be local (Arguments of this scripting command have to be local to the client the command is executed on). For global variant see addBackpackCargoGlobal

Syntax

Syntax:
vehicle addBackpackCargo [packClassName,count]
Parameters:
[packClassName,count]: Array
vehicle: Object - vehicle to add the backpack to
packClassName: String - backpack classname
count: Number - number of backpacks to add.
Return Value:
Nothing

Examples

Example 1:
this addBackpackCargo ["TK_RPG_Backpack_EP1",2];
Example 2:
_apc addBackpackCargo ["US_Patrol_Pack_EP1",4];

Additional Information

Multiplayer:
-
See also:
backpackContainerfirstBackpackunitBackpackbackpackbackpackCargogetBackpackCargobackpackItemsaddBackpackaddBackpackCargoGlobalremoveBackpackclearBackpackCargoclearBackpackCargoGlobalclearAllItemsFromBackpackloadBackpackbackpackSpaceForcanAddItemToBackpackaddItemToBackpackremoveItemFromBackpackeveryBackpack

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section