Hi, i'm stuck at one variable...
I can't find the variable type (RegGroupA) of this code... I tried region, unittype..nothing worked. still got an error.
I can't find the variable type (RegGroupA) of this code... I tried region, unittype..nothing worked. still got an error.
Code:
lb 1
Event
Temps - Every 1.00 seconds of game time
Conditions
Actions
Set RegTypeUA = Lumber Base 1
Custom script: set udg_RegGroupA = GetUnitsOfTypeIdAllFix(udg_RegTypeUA)
Custom script: set bj_wantDestroyGroup = true
Groupe unit - Pick every unit in (Units in RegGroupA) and do (Actions)
Loop - Actions
Joueur - Add 25 to (Owner of (Picked unit)) current wood