How is it possible to get the x and y coordinates of a location and assign them to a variable? I have tried to use location.x and location.y (even location.location), but everytime I use these, CTP2 says "Location is not a structure".
I did a search trough the CTP2 directory and mods and there is not a single line of code that uses location.x or .y. The disasters mod gets the X and Y by using Random(tmpX) and then assigning tmpX to another variable -- pretty clever.
But if you want a city's x and y location you can't use city[0].location.x and city[0].location.y
How do you get these values?
I did a search trough the CTP2 directory and mods and there is not a single line of code that uses location.x or .y. The disasters mod gets the X and Y by using Random(tmpX) and then assigning tmpX to another variable -- pretty clever.
But if you want a city's x and y location you can't use city[0].location.x and city[0].location.y
How do you get these values?
Comment