GetEnemyUnitsInRange returned a Thor?

Started by GoodMorning, August 25, 2016, 10:48:39 PM

Previous topic - Next topic

GoodMorning

Hello,

In this map discussion, you can find a map where a straightforward (linear stage progression) script waits for GetEnemyUnitsInRange to find nothing but CRPL Cores.

However, you will see further down that someone had an issue where the script stalled. Reason? They had a Thor, and GetEnemyUnitsInRange was returning it.

Does anyone know why, or must I add a workaround for it forever after?
A narrative is a lightly-marked path to another reality.

Nicant

I tested this as well, i modified the wiki script to say "This is Thor" and it only said that when there was thors on the map. The script i used is below. Not sure how you can workaround anything, but it is a weird feature that is probably a bug.
CW4 hype!!

GoodMorning

One workaround would be:
GetUnitType "THOR" eq if ... endif
A narrative is a lightly-marked path to another reality.