Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (isClass(configFile>>"CfgPatches">>"ace_main")) then
- {
- if([_unit] call ACE_fnc_HasRadio) then
- {
- if (_uavbp==0) then
- {
- CallUav = _unit addaction [localize "STR_ACT_CALLUAV","Scripts\Support\UAV\UAVREQUEST.sqf",[],0,false,true];
- _uavbp=1;
- };
- }
- else
- {
- if (_uavbp==1) then
- {
- _unit removeAction CallUav;
- _uavbp=0;
- };
- };
- }
- else
- {
- // NON-ACE BACKPACK
- if (!(isNull(unitBackpack _unit))) then
- {
- if ((typeof (unitBackpack _unit)) == "US_UAV_Pack_EP1") then
- {
- if (_uavbp==0) then
- {
- CallUav = _unit addaction [localize "STR_ACT_CALLUAV","Scripts\Support\UAV\UAVREQUEST.sqf",[],0,false,true];
- _uavbp=1;
- };
- }
- else
- {
- if (_uavbp==1) then
- {
- _unit removeAction CallUav;
- _uavbp=0;
- };
- };
- }
- else
- {
- if (_uavbp==1) then
- {
- _unit removeAction CallUav;
- _uavbp=0;
- };
- };
- };
- sleep 1;
- if ((rating _unit) < 0) then {_unit addRating (abs(rating _unit));};
- };
Add Comment
Please, Sign In to add comment