Next time don't put the scripts in the head of the map. Instead make a separate trigger and put them there.
~Daelin
~Daelin
function IsUnitEnsnared takes unit who returns boolean
return IsUnitType(who,UNIT_TYPE_SNARED) and GetUnitState(who,UNIT_STATE_LIFE)>0.00 and ...
endfunction