Quick Question FSM File

Pilpest

New Member
For FSM it says edit line 290
Look for (around line 290)
Code:
" if ((count units _x==0) ) then {" \n " diag_log (""CLEANUP: DELETING A GROUP: "" + str(_x));" \n and change the FIRST line to to: " if ((count units _x==0) && !(_x getVariable[""SAR_protect"",false])) then {" \n " diag_log (""CLEANUP: DELETING A GROUP: "" + str(_x));" \n
My only problem is my code looks like this...

Code:
      "    if (count units _x==0) then {" \n
      "        deleteGroup _x;" \n
      "        //diag_log (""CLEANUP: DELETING A GROUP"");" \n

So do I still keep this -
Code:
 "        deleteGroup _x;" \n

Or do I get rid of it and replace it with
Code:
" if ((count units _x==0) && !(_x getVariable[""SAR_protect"",false])) then {" \n " diag_log (""CLEANUP: DELETING A GROUP: "" + str(_x));" \n

Or do I keep the last two lines of MY code, and just replace the first line with the code I am suppose to replace it with?
 
go into the fsm file withing the download...

it says it should look like

"//diag_log (""CLEANUP: CHECKING GROUP WITH "" + str(count units _x) + "" UNITS"");" \n
"if ((count units _x==0) && !(_x getVariable[""SAR_protect"",false])) then {" \n
"deleteGroup _x;" \n
"//diag_log (""CLEANUP: DELETING A GROUP"");" \n
"};" \n
 
Code:
      init = /*%FSM<STATEINIT""">*/"//Clean groups" \n
      "{" \n
      " //diag_log (""CLEANUP: CHECKING GROUP WITH "" + str(count units _x) + "" UNITS"");" \n
      " if ((count units _x==0) && !(_x getVariable[""SAR_protect"",false])) then {" \n
      " deleteGroup _x;" \n
      " //diag_log (""CLEANUP: DELETING A GROUP"");" \n
      " };" \n
      "} forEach allGroups;" \n
 
Back
Top