Gonzonaut 0 Posted February 17, 2009 Heya, I am having difficulty with Kronzky's Urban Patrol Script, specifically with the KRON_Cleared_[AreaName] trigger firing at the start of the mission, before any enemies have been eliminated from that area. I am using ACE mod with this, and no other mods. I have a marker area called Sector_A1, of size 200x200, and I have a group of 4 infantry, with the leaders init being: nul=[this,"Sector_A1","Randomdn","Min:",1,"Max:",4,"Empty:",3,"Delete:",600] execVM "ups.sqf" I also have a Trigger with the condition of: KRON_Cleared_Sector_A1 The problem I am having is that the Trigger will sometimes fire at the start of the mission preview, thus completing the objective of clearing the area, when no shots have been fired, and no units killed in that area. Sometimes the trigger doesn't fire at the start, and all works until I clear the area as expected. It's almost 50-50. I can't seem to pin down the problem. I have tried the following in an attempt to solve this: 1. Added extra single infantry, not using UPS, into the Sector_A1 area. 2. Increasing and decreasing the "Empty:" amount. 3. Searching the internet for a solution. Any help with this problem would be appreciated. Share this post Link to post Share on other sites
awotter 0 Posted February 20, 2009 Heya,I am having difficulty with Kronzky's Urban Patrol Script, specifically with the KRON_Cleared_[AreaName] trigger firing at the start of the mission, before any enemies have been eliminated from that area. I am using ACE mod with this, and no other mods. I have a marker area called Sector_A1, of size 200x200, and I have a group of 4 infantry, with the leaders init being: nul=[this,"Sector_A1","Randomdn","Min:",1,"Max:",4,"Empty:",3,"Delete:",600] execVM "ups.sqf" I also have a Trigger with the condition of: KRON_Cleared_Sector_A1 The problem I am having is that the Trigger will sometimes fire at the start of the mission preview, thus completing the objective of clearing the area, when no shots have been fired, and no units killed in that area. Sometimes the trigger doesn't fire at the start, and all works until I clear the area as expected. It's almost 50-50. I can't seem to pin down the problem. I have tried the following in an attempt to solve this: 1. Added extra single infantry, not using UPS, into the Sector_A1 area. 2. Increasing and decreasing the "Empty:" amount. 3. Searching the internet for a solution. Any help with this problem would be appreciated. Add a game logic and group it with your trigger? Share this post Link to post Share on other sites
kronzky 5 Posted February 23, 2009 It sounds like a timing issue of ArmA (i.e. when it's done creating all units, vehicles, triggers, etc.), and then testing any trigger conditions against it (especially considering all the extra objects that have to be taken into consideration with the ACE mod). I'm not sure the addition of *anything* will fix this reliably, since the creation timing seems to be somewhat random. What you *could* do though is, make your KRON_Cleared_Sector_A1 trigger check for some other initialization variable as well (in addition to the UPS variable). So - Your sector done condition could look like this "KRON_Cleared_Sector_A1 && !isNil 'INIT_DONE'", and somewhere in your init scripts - at a point where you're absolutely sure all mission objects have been created - you'd set the INIT_DONE variable to some value. That way the trigger can only ever be true after this init value has been explicitly set by you Share this post Link to post Share on other sites
Gonzonaut 0 Posted February 24, 2009 Hey Kronzky, Thanks for the hint and explanation. I'll give your suggestion a try, as it certainly makes sense for the problem I am seeing. Nice work on the UPS also. Very handy and helpful tool. Much appreciated. Share this post Link to post Share on other sites