I'm trying to try and get a trigger to activate when a sides profile count drops below a certain number. My goal is basically activate a trigger after a certain attrition of forces. Currently I have a script with the following:
_profilesBySide = [ALiVE_profileHandler,"profilesBySide"] call ALIVE_fnc_hashGet; _profilesBySide = _profilesBySide select 2; //OPFOR profile count profiles = count (_profilesBySide select 0);
Then I have a trigger that activates when
profiles <= 100
I know this works when I use the debug console to execute the script, however I am wondering how to set this up so the profile count is continually monitored. Any help appreciated.