mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
34 lines
620 B
Plaintext
34 lines
620 B
Plaintext
/*
|
|
* Author: Rocko, Ruthberg
|
|
* Pick up tripod
|
|
*
|
|
* Arguments:
|
|
* 0: unit <OBJECT>
|
|
* 1: tripod <OBJECT>
|
|
*
|
|
* Return value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [ACE_player, tripod] call ace_tripod_fnc_pickup
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
params ["_unit", "_tripod"];
|
|
|
|
if (stance _unit == "STAND") then {
|
|
[_unit, "AmovPercMstpSrasWrflDnon_diary"] call EFUNC(common,doAnimation);
|
|
};
|
|
|
|
[{
|
|
params ["_unit", "_tripod"];
|
|
|
|
if (isNull _tripod) exitWith {};
|
|
|
|
deleteVehicle _tripod;
|
|
|
|
[_unit, "ACE_Tripod"] call EFUNC(common,addToInventory);
|
|
}, [_unit, _tripod], 1] call CBA_fnc_waitAndExecute;
|