ACE3/addons/common/functions/fnc_dropBackpack.sqf
jonpas 742626ff1a
General - Relative script_component.hpp includes (#9378)
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-12 20:58:10 +02:00

26 lines
545 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: commy2
* Drops a backback. Also returns the ground wepaon holder object of the dropped backpack.
*
* Arguments:
* 0: Unit that has a backpack <OBJECT>
*
* Return Value:
* Ground wepaon holder with backpack <OBJECT>
*
* Example:
* [unit] call ace_common_fnc_dropBackpack
*
* Public: Yes
*/
params [["_unit", objNull, [objNull]]];
private _backpackObject = backpackContainer _unit;
_unit addBackpack "ACE_FakeBackpack";
removeBackpack _unit;
objectParent _backpackObject // return