- Joined
- Dec 2, 2016
- Messages
- 733
I'm wondering, I have this code that adds rects to the 'base' variable. But I don't understand how exactly the 'Base' variable works. How can I for example check if 'base1' contains a certain UnitType?
JASS:
scope initBases initializer OnInit
public function OnInit takes nothing returns nothing
local base b
set b = base.create("1")
call b.addRect(gg_rct_Base01a)
call b.addRect(gg_rct_Base01b)
call b.addRect(gg_rct_Base01c)
set b = base.create("2")
call b.addRect(gg_rct_Base02a)
call b.addRect(gg_rct_Base02b)
call b.addRect(gg_rct_Base02c)
endfunction
endscope