mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
79cf8dd98e
Remove Some forgotten Commands
34 lines
689 B
Plaintext
34 lines
689 B
Plaintext
/*
|
|
* Author: commy2
|
|
*
|
|
* Handle death of the dragger
|
|
*
|
|
* Arguments:
|
|
* 0: Unit <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [_unit] call ace_dragging_fnc_handleKilled;
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
params ["_unit"];
|
|
|
|
if (_unit getVariable [QGVAR(isDragging), false]) then {
|
|
private "_draggedObject";
|
|
_draggedObject = _unit getVariable [QGVAR(draggedObject), objNull];
|
|
|
|
[_unit, _draggedObject] call FUNC(dropObject);
|
|
};
|
|
|
|
if (_unit getVariable [QGVAR(isCarrying), false]) then {
|
|
private "_carriedObject";
|
|
_carriedObject = _unit getVariable [QGVAR(carriedObject), objNull];
|
|
|
|
[_unit, _carriedObject] call FUNC(dropObject_carry);
|
|
};
|