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