• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Setting Local's

Status
Not open for further replies.
Level 5
Joined
Jun 30, 2005
Messages
79
I was wondering if there is a way to set a variable to a local witout using jass. I herd there is a custom script function wich can makes a variable local. So anyone know a way to make a variable local witout the use of jass?
 
Level 10
Joined
Jul 14, 2004
Messages
463
I'm not sure if I understood you correctly, but when you declared the local via custom script, you'll need custom script again every time you use the variable. To set a variable in JASS, just write
Code:
set variable1 = VariableOrFunction2
and variable1 will be set to the value that results of the right side of the "=". Don't forget to add udg_ before the names of globals you declared in the variable window.
 
Status
Not open for further replies.
Top