Expelliarmus
Where to change the sig?
- Reaction score
- 48
1.
While searching in the Function List, I found this:
nothing too exciting... but what does it do?
_______________________________________________________
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
2.
Can I use GetTriggerUnit() in Filter? Does it work? Is it 'safe' or should I just use global?
While searching in the Function List, I found this:
JASS:
native ForceUICancel takes nothing returns nothing
nothing too exciting... but what does it do?
_______________________________________________________
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
2.
Can I use GetTriggerUnit() in Filter? Does it work? Is it 'safe' or should I just use global?
JASS:
private function Filter takes nothing returns boolean
local unit filter = GetFilterUnit()
if IsUnitType(filter, UNIT_TYPE_STRUCTURE) == false and IsUnitEnemy(filter, GetOwningPlayer(GetTriggerUnit())) == true then
//..
endif
set filter = null
return false
endfunction
private function Actions takes nothing returns nothing
//...
call GroupEnumUnitsInRannge(... Condition(function Filter))
//...
endfunction