Page tree
Skip to end of metadata
Go to start of metadata




Introduced in

Version:1.30

Description

Description:Removes an object or objects from the cargo of their container. Object cargo is used to store objects, such as cell phones or ammunition cans, which are not weapons or magazines.

Syntax

Syntax:[cargo, dropPosition] call fn_vbs_objectCargo_remove
Parameters:
  • cargo: Array of Object - Objects to remove from the cargo.
  • dropPosition: Position3D - Position to move the cargo to, once the removed content is dropped. If omitted, the object is dropped in front of its container (optional).
Return Value:Nothing

Warning

When using functions in VBS versions older than 3.4, certain limitations and requirements should be kept in mind - the main ones being that capitalization of the function name is crucial, and that #include "\vbs2\headers\function_library.hpp" has to be included in every script that utilizes it. More Functions A-Z.

Examples

Examples:
[player call fn_vbs_objectCargo_get, getpos player2] call fn_vbs_objectCargo_remove

Additional Information

See also: fn vbs objectCargo get, fn vbs objectCargo add
Multiplayer: 
Problems: 

Notes