Question about 'unit remains in area'

Post new mods and scenarios here.

Moderator: MOD_Command

Post Reply
mx1
Posts: 76
Joined: Thu Jan 16, 2014 6:01 pm

Question about 'unit remains in area'

Post by mx1 »

I don't know if it is a bug or WAD, but if the trigger for the 'unit remains in area' is not unit specific then it fires only for the first unit which matches side,type,subtype and class (or in case the event is repeatable once per time interval).
So for example if there are 3 units of matching class that remains in area for X minutes the trigger will fire only for the first unit that remains for X minutes and not 3 times after X minutes.
This behavior is problematic if someone (me [:D]) wants to create action based on each unit remaining in the area for some time. My use case is that units are added to scenario via Lua script, so the trigger can not be unit specific. I wanted to calculate score based on the number of units remaining in area (to simulate capture progress/strength) but it seems that I can't really tell how many units are in the area. Any comment or thought on how to approach this use case would be appreciated.
Post Reply

Return to “Mods and Scenarios”