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

custom script

Status
Not open for further replies.
Level 3
Joined
Sep 3, 2007
Messages
27
can someone help me whit this Fucking Custom Script i don't get anything from it ( example : what dose this do ? ( call RemoveLocation(dng_AngrySouls_HeroPosition) ). I need some fucking help whit this Custom Script :(
 
Level 9
Joined
Jun 26, 2007
Messages
659
when you use a location somewhere (like create a unit a a point), this location is stored in you computer memory
the problem is that warcraft keep this point in memory after using it, this is what we call a "memory leak"

a custom script is nothing else but a line of JASS in your GUI trigger
this one call (key word for saying wc we are calling a function execution) RemoveLocation; RemoveLocation remove the parameter location (dng_AngrySouls_HeroPosition here) from the computer memory.
 
Level 21
Joined
Aug 21, 2005
Messages
3,699
the custom script removelocation works like this:

RemoveLocation (udg_PointVariableName)

basically, all you have to do is copy that line and replace "PointVariableName" with the name of your variable, which should be a point variable found in your variablelist. (I don't know if this only works with globals or not, but I only use globals in GUI for safety anyway)
 
Status
Not open for further replies.
Top