Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // для нейтральных флажков
- if (playerside == west) then
- {
- {
- [_x,"Поднять американский флаг","\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_takeOff2_ca.paa","\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_takeOff2_ca.paa",
- "(((_this distance _target) < 5) && ((_target getVariable 'controledBy') != west))","((_this distance _target) < 5)",
- {[_target, 0] call BIS_fnc_animateFlag},
- {},
- {_target setVariable ["controledBy", west, true]; [_target, "flag_usa_co.paa"] remoteExec ["setFlagTexture", _target]; [_target, 1] call BIS_fnc_animateFlag},
- {[_target, 1] call BIS_fnc_animateFlag;},
- [],20,0,false,false] call BIS_fnc_holdActionAdd;
- } forEach neutral_flags;
- }
- else
- {
- {
- [_x,"Поднять советский флаг","\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_takeOff2_ca.paa","\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_takeOff2_ca.paa",
- "(((_this distance _target) < 5) && ((_target getVariable 'controledBy') != east))","((_this distance _target) < 5)",
- {[_target, 0] call BIS_fnc_animateFlag},
- {},
- {_target setVariable ["controledBy", east, true]; [_target, "flag_rus_co.paa"] remoteExec ["setFlagTexture", _target]; [_target, 1] call BIS_fnc_animateFlag},
- {[_target, 1] call BIS_fnc_animateFlag;},
- [],20,0,false,false] call BIS_fnc_holdActionAdd;
- } forEach neutral_flags;
- };
- // для ненейтральных флажков
- if (playerside == west) then
- {
- {
- [_x,"Поднять американский флаг","\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_takeOff2_ca.paa","\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_takeOff2_ca.paa",
- "(((_this distance _target) < 5) && ((_target getVariable 'controledBy') != west) && (((_x getVariable 'controledBy' == west) count all_flags) > 5))","((_this distance _target) < 5)",
- {[_target, 0] call BIS_fnc_animateFlag},
- {},
- {_target setVariable ["controledBy", west, true]; [_target, "flag_usa_co.paa"] remoteExec ["setFlagTexture", _target]; [_target, 1] call BIS_fnc_animateFlag},
- {[_target, 1] call BIS_fnc_animateFlag;},
- [],20,0,false,false] call BIS_fnc_holdActionAdd;
- } forEach colored_flags;
- }
- else
- {
- {
- [_x,"Поднять советский флаг","\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_takeOff2_ca.paa","\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_takeOff2_ca.paa",
- "(((_this distance _target) < 5) && ((_target getVariable 'controledBy') != east) && (((_x getVariable 'controledBy' == east) count all_flags) > 5))","((_this distance _target) < 5)",
- {[_target, 0] call BIS_fnc_animateFlag},
- {},
- {_target setVariable ["controledBy", east, true]; [_target, "flag_rus_co.paa"] remoteExec ["setFlagTexture", _target]; [_target, 1] call BIS_fnc_animateFlag},
- {[_target, 1] call BIS_fnc_animateFlag;},
- [],20,0,false,false] call BIS_fnc_holdActionAdd;
- } forEach colored_flags;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement