Jump to content

tapull

Member
  • Content Count

    1
  • Joined

  • Last visited

  • Medals

Community Reputation

0 Neutral

About tapull

  • Rank
    Newbie
  1. Hi im triying to setup a waypoint "on-activation"-script for the task to liberate 3 villages. I want it to check when triggered if there is still enemy units in the trigger area. When there are none left its liberated : which means it should add +1 to liberated villages (3 villages in total). But my script doesnt seem to work. Please i need help. Happy New Year btw ! Screenshots : file:///C:/Users/taras/Downloads/script%20help/problem.PNG Condition : !((count (units group thisList) > 0) && {(side _x == east) || (side _x == resistance)} count (units group thisList) > 0) On activation : _taskName = "Liberate Villages"; _villageName = "Pavlokhov"; if (!(taskState [_taskName, _villageName])) then { taskSetState [_taskName, _villageName, true]; _liberatedVillages = 0; { if (taskState [_taskName, _x]) then { _liberatedVillages = _liberatedVillages + 1; }; } forEach ["Pavlokhov", "Novoshny", "Solnevny"]; hint format ["%1 Villages Liberated! Move on.", _liberatedVillages]; };
×