Page 1 of 1
Is there any Spring.GetVisibleUnits for radar dots?
Posted: 05 Feb 2014, 05:24
by Pxtl
I'm working on a widget and I want to just access the units that are visible on-screen. spGetVisibleUnits doesn't seem to support radar dots... Is there any way to iterate across the known radar dots, particularly the ones on the screen? Or is access to radar-dots restricted to the UnitEnteredRadar and UnitLeftRadar callins?
Re: Is there any Spring.GetVisibleUnits for radar dots?
Posted: 05 Feb 2014, 07:08
by knorke
spGetVisibleUnits doesn't seem to support radar dots..
You mean there are not returned?
Did you try GetVisibleUnits with
boolean Icons = true parameter?
No idea if that will
only return icons or
also return icons or something else.
Maybe Spring.GetUnitLosState usefull too.
Re: Is there any Spring.GetVisibleUnits for radar dots?
Posted: 05 Feb 2014, 07:22
by Funkencool
Are you just trying to get a count?
That might be doable some other way but If I remember right you can't get unitID's from radar blobs. I'm guessing GetVisibleUnits won't return them since it returns unitIDs. For anti-cheating purposes no doubt.
Re: Is there any Spring.GetVisibleUnits for radar dots?
Posted: 05 Feb 2014, 16:12
by Pxtl
I'm looking to get the coordinates and teamID of all known units on the screen, I don't require their UnitDefID.
And that's correct, GetVisibleUnits does not return anything for Radar Dots even if you elect to include Icons.