mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
ffaa195fe5
* Fixed headers to work with silentspike python script * Fixed rest of the files * Fixed ace-team
26 lines
542 B
Plaintext
26 lines
542 B
Plaintext
/*
|
|
* 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
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
params [["_unit", objNull, [objNull]]];
|
|
|
|
private _backpackObject = backpackContainer _unit;
|
|
|
|
_unit addBackpack "ACE_FakeBackpack";
|
|
removeBackpack _unit;
|
|
|
|
objectParent _backpackObject // return
|