Advertisement
Ferix

Untitled

Jun 23rd, 2018
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.91 KB | None | 0 0
  1. //Set Escort Button
  2.  
  3. if (player getVariable ["isEscorting",false]) then {
  4.     _Btn4 ctrlSetText localize "STR_pInAct_StopEscort";
  5.     _Btn4 buttonSetAction "[] call life_fnc_stopEscorting; closeDialog 0;";
  6. } else {
  7.     _Btn4 ctrlSetText localize "STR_pInAct_Escort";
  8.     _Btn4 buttonSetAction "[life_pInact_curTarget] call life_fnc_escortAction; closeDialog 0;";
  9. };
  10.  
  11. /*if((_curTarget getVariable["Escorting",false])) then {
  12.     _Btn2 ctrlSetText localize "STR_pInAct_StopEscort";
  13.     _Btn2 buttonSetAction "[life_pInact_curTarget] call life_fnc_stopEscorting; [life_pInact_curTarget] call life_fnc_civInteractionMenu;";
  14.     if(_currplayer distance player > _dis) then {_Btn2 ctrlEnable false;};
  15. } else {
  16.     _Btn2 ctrlSetText localize "STR_pInAct_Escort";
  17.     _Btn2 buttonSetAction "[life_pInact_curTarget] call life_fnc_escortAction; closeDialog 0;";
  18.     if(_currplayer distance player > _dis) then {_Btn2 ctrlEnable false;};
  19. };*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement