Laiev
Hey Listen!!
- Reaction score
- 188
No, you can't add/remove variables to/from a struct after game started.
You can set/initializer then after game started.
You can set/initializer then after game started.
struct SomeStruct extends array
integer Agi
integer Int
integer Str
private method AIDS_onCreate takes nothing returns nothing
set this.Agi=GetHeroAgi(this.unit,false)
set this.Int=GetHeroInt(this.unit,false)
set this.Str=GetHeroStr(this.unit,false)
endmethod
private static method AIDS_filter takes unit u returns boolean
return IsUnitHero(u)
endmethod
//! runtextmacro AIDS()
endstruct
private static method AIDS_filter takes unit u returns boolean
return IsUnitType(u, UNIT_TYPE_HERO)
endmethod