- Joined
- Jul 6, 2009
- Messages
- 1,885
I'm learning JASS so i've got 2 questions.
-I saw few times that several triggers are squeezed inside single trigger,but i don't know how to do it because i can't add multiple events for different actions inside single trigger =/
Shortly,how to add functions of multiple triggers into one trigger?
-Why doesn't this work:
It says invalid argument type for last line.
-I saw few times that several triggers are squeezed inside single trigger,but i don't know how to do it because i can't add multiple events for different actions inside single trigger =/
Shortly,how to add functions of multiple triggers into one trigger?
-Why doesn't this work:
JASS:
function Drone_Bomb_Cast takes nothing returns nothing
local location Loc1
local location Loc2
set Loc1 = GetUnitLoc(GetTriggerUnit())
set Loc2 = GetSpellTargetLoc()
call CreateUnitAtLoc(GetPlayerId(GetOwningPlayer(GetTriggerUnit())),'h002',Loc1,AngleBetweenPoints(Loc1,Loc2))
endfunction
It says invalid argument type for last line.
Last edited: