help with locals

Jooster

New Member
Reaction score
7
what's the difference between a temp_local_group and a normal temp_unit_group?

if anything could someone link me to a tutorial to read up about them. ive looked around and i am unable to find one of such.
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
I think you are confusing GUI and Jass...

JASS:
function
    local unit group g = GetUnitsInRect( GetPlayableMapArea())


Code:
Actions
    Set TempGroup = Units in (Playable Map Area)

They're one and the same basically...
 

Jooster

New Member
Reaction score
7
i forget where but i was told to help make a spell mui to set variable groups as locals. :S
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
Locals don't make it MUI. You can add them in, but they won't necessarily make it MUI.
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
Just search for any jass tutorial. It should tell you of them.
 
Reaction score
341
What is there to know? They are the same as regular variables , without the ability to be transfered from functions.
 

Jooster

New Member
Reaction score
7
transfered between functions. you mean like if i set a local in one trigger i couldn't use that same local in another trigger. say for instance i set units into a unit group. i wouldn't be able to use that same unit group in a different trigger?
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
You can use the same name, type, but not that same exact instance. Say you do,

JASS:
local unit group g = GetUnitsInRect( GetPlayableMapArea())


That gets every unit.

JASS:
local unit group g = GetUnitsInRect( udg_Rect)


That gets units just in one rect, not all.

The two will not override each other, so it can be the same name, type, input, whatever.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top