• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[Trigger] Conditions & Leaks

Status
Not open for further replies.
Level 9
Joined
Nov 4, 2007
Messages
931
[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
931
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