• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

What does this tigger do

Status
Not open for further replies.
Level 12
Joined
Jul 17, 2013
Messages
544
So guys i need help i got tigger in jass here and its supossed to kill alll air units which have 0 mana but it doesnt work for some reason? whats wrong here do i need to type name of my units at it?
//===========================================================================
//===========================================================================
//Trigger:Out of Fuel
//===========================================================================
function Trig_Out_of_Fuel_Func002001002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_FLYING)==true)
endfunction

function Trig_Out_of_Fuel_Func002001002002 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_MANA,GetFilterUnit())<1.00)
endfunction

function Trig_Out_of_Fuel_Func002001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Out_of_Fuel_Func002001002001(),Trig_Out_of_Fuel_Func002001002002())
endfunction

function Trig_Out_of_Fuel_Func002002 takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction

function Trig_Out_of_Fuel_Actions takes nothing returns nothing
//No Fuel(Planes)
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_Out_of_Fuel_Func002001002)),function Trig_Out_of_Fuel_Func002002)
endfunction

//===========================================================================
//===========================================================================
 
Level 11
Joined
Jun 2, 2004
Messages
849
I'm sorry, I can't help myself.
NhGUaWd.jpg



Anyway it looks like the trigger you posted here.
 
Status
Not open for further replies.
Top