This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Hi, i need to make a comparison between a unit place on a specific region and a a list of units on data (F7)
like this:
if (any units place on "REGION 1" == (unit type"marine" or unit id "marine" or unit "marine") than make action..
I cant found any possibility to add command for make the name of unit type/id/or other: marine on condition.. pls help. THX https://vlc.onl/
Hello,
Something like :
fixed myRegionRadius = 8.0; fixed myTargetRadius = 20.0; unitgroup myGroup = UnitGroupEmpty(); region myRegion = RegionCircle(UnitGetPosition(myUnit), myRegionRadius); <strong><span style="color: #0000ff;">UnitGroupAddUnitGroup(myGroup, UnitGroupSearch(c_TU_Marine, player, RegionGetCenter(myRegion), myTargetRadius, UnitFilterStr("Visible;Player,Neutral,Missile,Self,Stasis,Structure,Invulnerable,Dead,Hidden,Worker"), c_noMaxCount));</span></strong>
I suppose ??
Then make a loop on each unit of the UnitGroup and do your tests ?
HAVE FUN
And a nice day.
Hi, i need to make a comparison between a unit place on a specific region and a a list of units on data (F7)
like this:
if (any units place on "REGION 1" == (unit type"marine" or unit id "marine" or unit "marine") than make action..
I cant found any possibility to add command for make the name of unit type/id/or other: marine on condition.. pls help. THX https://vlc.onl/
Hello,
Something like :
I suppose ??
Then make a loop on each unit of the UnitGroup and do your tests ?
HAVE FUN
And a nice day.