ACE3/addons/tripod/functions/fnc_pickup.sqf

34 lines
620 B
Plaintext
Raw Normal View History

2015-06-04 19:13:44 +00:00
/*
* Author: Rocko, Ruthberg
* Pick up tripod
*
* Arguments:
* 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:
* [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"
params ["_unit", "_tripod"];
2015-06-04 19:13:44 +00:00
if (stance _unit == "STAND") then {
[_unit, "AmovPercMstpSrasWrflDnon_diary"] call EFUNC(common,doAnimation);
2015-06-04 19:13:44 +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;
[_unit, "ACE_Tripod"] call EFUNC(common,addToInventory);
}, [_unit, _tripod], 1] call CBA_fnc_waitAndExecute;