mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
25 lines
487 B
Plaintext
25 lines
487 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>
|
|
*
|
|
* Public: Yes
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
params ["_unit"];
|
|
|
|
private ["_backpackObject", "_holder"];
|
|
|
|
_backpackObject = backpackContainer _unit;
|
|
|
|
_unit addBackpack "Bag_Base";
|
|
removeBackpack _unit;
|
|
|
|
objectParent _backpackObject // return
|