• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

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