- Joined
- Mar 20, 2014
- Messages
- 67
Hey Guys,
In my game you're supposed to destroy each others buildings but I can't for some reason figure out why the buildings are dying. They should be dying, but they still do. Any help? Here's what I'm using to determine if it's a building. It also fires on Unit Attacked so it should happen before the damage is dealt.
Thoughts?
In my game you're supposed to destroy each others buildings but I can't for some reason figure out why the buildings are dying. They should be dying, but they still do. Any help? Here's what I'm using to determine if it's a building. It also fires on Unit Attacked so it should happen before the damage is dealt.
JASS:
if ( GetWidgetLife(u) <= 20) and (IsUnitType(u, UNIT_TYPE_STRUCTURE)) then
call SetUnitAnimation( u, "death" )
call UnitAddAbility(u, 'Aloc')
Thoughts?