Ferix

Untitled

Jun 23rd, 2018
99
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. };*/
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×