call removelocation with playernumber?

Status
Not open for further replies.
for player 1 (red) the JASS PlayerID would be 0. if you have set the array values to player numbers in GUI then I think you might need to 1 to the integer returned from Almia's above function. I'm not sure though because it depends how you are assigning the point array.
 
It seems to me that either would work.
either
+1 increment in code to match up with GUI
ot
-1 in GUI to match up with code.

as long as it's consistent. If GUI is what you generally use and it is what you know best then I would do the former to avoid confusing yourself in early hours of the morning.
 
That above will leak,coz 2 location variables will share the same coordinates,creating two locations

False. Locations are objects, which is why you would destroy them in the first place. The variables are only pointers to those objects. If you set locationVarA = locationVarB, both variables will reference the same object. Player's start location is a function creating a new location.
 
Status
Not open for further replies.
Back
Top