Outpost Universe Forums

Projects & Development => Outpost 2 Programming & Development => Topic started by: Sirbomber on January 25, 2010, 04:08:55 PM

Title: Finding Locations
Post by: Sirbomber on January 25, 2010, 04:08:55 PM
I get the feeling this has been asked and answered before, but my searches can't find anything...

Anyways, I want to use a PlayerBuildingEnum to find all of a player's buildings and then spawn a permavortex on them because I'm an evil, evil person. :evil laugh:

It's the "find the location" part I'm having trouble with... any suggestions?
Title: Finding Locations
Post by: Arklon on January 25, 2010, 06:07:19 PM
unit blah;
while (PlayerBlightEnum.getNext blah blah blah)
{
location LOCATIONFOOL = blah.location;
int XFOOL = blah.location.x;
int YFOOL = blah.location.y;
}
Title: Finding Locations
Post by: Sirbomber on January 25, 2010, 07:42:09 PM
Thanks!  I'm sure nobody else will be too happy about this though!
Title: Finding Locations
Post by: CK9 on January 26, 2010, 12:56:26 AM
I'm all for torturing people, especially when they like to rush in games, lol
Title: Finding Locations
Post by: Hidiot on January 26, 2010, 04:30:51 AM
You mean there actually is an easy way to return the coordinates of an existing object? (unit or building at least... would be nice if it included mining beacons and the like)

:CK9's:

I never came across it...