Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 2.85 KB | None | 0 0
  1. // для нейтральных флажков
  2.  
  3. if (playerside == west) then
  4. {
  5.     {
  6.         [_x,"Поднять американский флаг","\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_takeOff2_ca.paa","\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_takeOff2_ca.paa",
  7.         "(((_this distance _target) < 5) && ((_target getVariable 'controledBy') != west))","((_this distance _target) < 5)",
  8.         {[_target, 0] call BIS_fnc_animateFlag},
  9.         {},
  10.         {_target setVariable ["controledBy", west, true]; [_target, "flag_usa_co.paa"] remoteExec ["setFlagTexture", _target]; [_target, 1] call BIS_fnc_animateFlag},
  11.         {[_target, 1] call BIS_fnc_animateFlag;},
  12.         [],20,0,false,false] call BIS_fnc_holdActionAdd;
  13.     } forEach neutral_flags;
  14. }
  15. else
  16. {
  17.     {
  18.         [_x,"Поднять советский флаг","\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_takeOff2_ca.paa","\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_takeOff2_ca.paa",
  19.         "(((_this distance _target) < 5) && ((_target getVariable 'controledBy') != east))","((_this distance _target) < 5)",
  20.         {[_target, 0] call BIS_fnc_animateFlag},
  21.         {},
  22.         {_target setVariable ["controledBy", east, true]; [_target, "flag_rus_co.paa"] remoteExec ["setFlagTexture", _target]; [_target, 1] call BIS_fnc_animateFlag},
  23.         {[_target, 1] call BIS_fnc_animateFlag;},
  24.         [],20,0,false,false] call BIS_fnc_holdActionAdd;
  25.     } forEach neutral_flags;
  26. };
  27.  
  28.  
  29. // для ненейтральных флажков
  30. if (playerside == west) then
  31. {
  32.     {
  33.         [_x,"Поднять американский флаг","\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_takeOff2_ca.paa","\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_takeOff2_ca.paa",
  34.         "(((_this distance _target) < 5) && ((_target getVariable 'controledBy') != west) && (((_x getVariable 'controledBy' == west) count all_flags) > 5))","((_this distance _target) < 5)",
  35.         {[_target, 0] call BIS_fnc_animateFlag},
  36.         {},
  37.         {_target setVariable ["controledBy", west, true]; [_target, "flag_usa_co.paa"] remoteExec ["setFlagTexture", _target]; [_target, 1] call BIS_fnc_animateFlag},
  38.         {[_target, 1] call BIS_fnc_animateFlag;},
  39.         [],20,0,false,false] call BIS_fnc_holdActionAdd;
  40.     } forEach colored_flags;
  41. }
  42. else
  43. {
  44.     {
  45.         [_x,"Поднять советский флаг","\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_takeOff2_ca.paa","\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_takeOff2_ca.paa",
  46.         "(((_this distance _target) < 5) && ((_target getVariable 'controledBy') != east) && (((_x getVariable 'controledBy' == east) count all_flags) > 5))","((_this distance _target) < 5)",
  47.         {[_target, 0] call BIS_fnc_animateFlag},
  48.         {},
  49.         {_target setVariable ["controledBy", east, true]; [_target, "flag_rus_co.paa"] remoteExec ["setFlagTexture", _target]; [_target, 1] call BIS_fnc_animateFlag},
  50.         {[_target, 1] call BIS_fnc_animateFlag;},
  51.         [],20,0,false,false] call BIS_fnc_holdActionAdd;
  52.     } forEach colored_flags;
  53. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement