• 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.

[Trigger] Conditions & Leaks

Status
Not open for further replies.
Level 9
Joined
Nov 4, 2007
Messages
933
[SOLVED]
Is using Conditions that do location checks and unit group checks without using a variable for said unit group and location going to leak, or do they only leak when they are set in an action, this was probably in a different thread but when I searched I came up with 700+ results, so thanks for taking the time to respond in advance.
 
Last edited:
Level 9
Joined
Nov 4, 2007
Messages
933
Thanks. One other question, why is using locations instead of X and Y values not preffered, aren't the X and Y values based on that location anyway.
 
Level 8
Joined
Apr 30, 2009
Messages
338
No it's the other way around. The way I understand natives is that when you call the location function it computes X and Y anyway, so it's just like saying

Loc(F) = F(x),F(y)

meaning that calling Location calls X and Y anyway, so you save a function call by doing X and Y instead of location.

The Location function exists just to make it more GUI friendly, my understanding is.
 
Status
Not open for further replies.
Top