- Joined
- Oct 11, 2012
- Messages
- 711
Hi, guys. Please see the example below:
JASS:
globals
//Declares a global group variable "gg"
gg = CreateGroup()
endglobals
function test takes nothing returns nothing
//Declares a local group varialbe also named "gg"
local gg = CreateGroup()
//Which "gg" the following function is calling? The global variable or the local variable?
call GroupEnumUnitsInRange(gg,x,y,100.,null)
......
endfunction