2015-06-04 19:13:44 +00:00
|
|
|
/*
|
|
|
|
* Author: Rocko, Ruthberg
|
|
|
|
* Pick up tripod
|
|
|
|
*
|
|
|
|
* Arguments:
|
2015-09-26 01:16:55 +00:00
|
|
|
* 0: unit <OBJECT>
|
|
|
|
* 1: tripod <OBJECT>
|
2015-06-04 19:13:44 +00:00
|
|
|
*
|
2016-06-18 09:50:41 +00:00
|
|
|
* Return Value:
|
2015-06-04 19:13:44 +00:00
|
|
|
* None
|
2015-08-07 06:07:10 +00:00
|
|
|
*
|
|
|
|
* Example:
|
2015-09-26 01:16:55 +00:00
|
|
|
* [ACE_player, tripod] call ace_tripod_fnc_pickup
|
2015-08-07 06:07:10 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
2015-06-04 19:13:44 +00:00
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-09-26 01:16:55 +00:00
|
|
|
params ["_unit", "_tripod"];
|
2015-06-04 19:13:44 +00:00
|
|
|
|
2015-09-26 01:16:55 +00:00
|
|
|
if (stance _unit == "STAND") then {
|
|
|
|
[_unit, "AmovPercMstpSrasWrflDnon_diary"] call EFUNC(common,doAnimation);
|
2015-06-04 19:13:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
[{
|
2015-09-26 01:16:55 +00:00
|
|
|
params ["_unit", "_tripod"];
|
|
|
|
|
|
|
|
if (isNull _tripod) exitWith {};
|
2015-06-06 02:13:33 +00:00
|
|
|
|
2015-06-04 19:13:44 +00:00
|
|
|
deleteVehicle _tripod;
|
2015-09-26 01:16:55 +00:00
|
|
|
|
|
|
|
[_unit, "ACE_Tripod"] call EFUNC(common,addToInventory);
|
2016-05-22 13:27:24 +00:00
|
|
|
}, [_unit, _tripod], 1] call CBA_fnc_waitAndExecute;
|