ACE3/addons/tripod/functions/fnc_pickup.sqf

31 lines
589 B
Plaintext
Raw Normal View History

2015-06-04 19:13:44 +00:00
/*
* Author: Rocko, Ruthberg
* Pick up tripod
*
* Arguments:
* 0: tripod <OBJECT>
* 1: unit <OBJECT>
*
* Return value:
* None
2015-08-07 06:07:10 +00:00
*
* Example:
* [tripod, player] call ace_tripod_fnc_pickup
*
* Public: No
2015-06-04 19:13:44 +00:00
*/
#include "script_component.hpp"
2015-08-07 06:07:10 +00:00
params ["_tripod", "_unit"];
2015-06-04 19:13:44 +00:00
if ((_unit call CBA_fnc_getUnitAnim) select 0 == "stand") then {
2015-06-06 02:13:33 +00:00
_unit playMove "AmovPercMstpSrasWrflDnon_diary";
2015-06-04 19:13:44 +00:00
};
[{
2015-08-07 06:07:10 +00:00
params ["_tripod", "_unit"];
2015-06-06 02:13:33 +00:00
[_unit, "ACE_Tripod"] call EFUNC(common,addToInventory);
2015-06-04 19:13:44 +00:00
deleteVehicle _tripod;
}, [_tripod, _unit], 1, 0]call EFUNC(common,waitAndExecute);