mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
742626ff1a
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
34 lines
623 B
Plaintext
34 lines
623 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* 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
|
|
*/
|
|
|
|
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;
|