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

Base question

Status
Not open for further replies.
Level 12
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
 
Status
Not open for further replies.
Top