So i got these 2 maps, pretty much the same concept, both tag maps, my friend wanted me to code his tag map, so i said sure just make hte terrain. Now im trying to use the exact same code that works in my map, in his. all the variables except for one is local (which i made). there are no locations in it. all the unit ID's have been changed to the correct ones but the trigger does not do anything. So question, does
call TriggerRegisterDeathEvent(gg_trg_deathtrig,GetEnumUnit())
does that only apply to nonhero units? What are things that could be happening so it doesn't work, 3 outa the 4 triggers do work that i imported. Its like the trigger doesn't even go off. Here it is, anything wrong with it?
I have already tried getting rid of the conditions to see if it will go off when a unit dies and it doesn't. I've added a debug message to see if function death is actaully going off and nothing happened
call TriggerRegisterDeathEvent(gg_trg_deathtrig,GetEnumUnit())
does that only apply to nonhero units? What are things that could be happening so it doesn't work, 3 outa the 4 triggers do work that i imported. Its like the trigger doesn't even go off. Here it is, anything wrong with it?
JASS:
function InitTrig_deathtrig takes nothing returns nothing
set gg_trg_deathtrig = CreateTrigger( )
call TriggerRegisterDeathEvent(gg_trg_deathtrig,GetEnumUnit())
call TriggerAddCondition(gg_trg_deathtrig, Condition(function isrunner))
call TriggerAddAction(gg_trg_deathtrig, function death)
endfunction