2015-06-05 07:34:27 +00:00
|
|
|
/*
|
|
|
|
* Author: Rocko, Ruthberg
|
|
|
|
*
|
|
|
|
* Pick up spotting scope
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: spotting scope <OBJECT>
|
|
|
|
* 1: unit <OBJECT>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* Nothing
|
|
|
|
*
|
|
|
|
* Return value:
|
|
|
|
* None
|
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
PARAMS_2(_spottingScope,_unit);
|
|
|
|
|
|
|
|
if ((_unit call CBA_fnc_getUnitAnim) select 0 == "stand") then {
|
2015-06-05 08:32:55 +00:00
|
|
|
_unit playMove "AmovPercMstpSrasWrflDnon_diary";
|
2015-06-05 07:34:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
[{
|
|
|
|
PARAMS_2(_spottingScope,_unit);
|
|
|
|
|
2015-06-05 08:32:55 +00:00
|
|
|
[_unit, "ACE_SpottingScope"] call EFUNC(common,addToInventory);
|
2015-06-05 07:34:27 +00:00
|
|
|
deleteVehicle _spottingScope;
|
|
|
|
|
|
|
|
}, [_spottingScope, _unit], 1, 0]call EFUNC(common,waitAndExecute);
|