Hi,
i am fairly new to Jass and been scripting some easy stuff ... but now i have 2 triggers
1 shooting bullets in a direction and 1 shooting bullets at a point
this one works fine , the dummys cast the spell and everything
and now the on where the dummys dont shoot ...
the loop is executed , i have tested this with some text displayed , the dummys are created , but the dont use the ability.
also the use of location or x and y in issuepointorder does not change anything
i dont know why and really need help here :/
i am fairly new to Jass and been scripting some easy stuff ... but now i have 2 triggers
1 shooting bullets in a direction and 1 shooting bullets at a point
JASS:
function Trig_mmgfacing_Actions takes nothing returns nothing
local real dummyfacing = GetUnitFacing(GetSpellAbilityUnit())
local location shottemp = null
local unit dummy = null
local unit caster = GetSpellAbilityUnit()
local integer LoopIndex = 1
local integer LoopIndexEnd = 10
loop
exitwhen LoopIndex > LoopIndexEnd
set dummy = CreateUnitAtLoc( GetOwningPlayer(caster), 'h005', GetUnitLoc(caster), dummyfacing )
call ShowUnitHide ( dummy )
call SetUnitInvulnerable( dummy , true )
call SelectUnitRemoveForPlayer( dummy, GetOwningPlayer(dummy) )
set shottemp = PolarProjectionBJ ( GetUnitLoc(dummy) , 50 , dummyfacing)
call IssuePointOrderLocBJ( dummy, "shockwave", shottemp )
call RemoveUnit( dummy )
call PolledWait(0.1)
set LoopIndex = LoopIndex + 1
endloop
call RemoveLocation(shottemp)
set dummy = null
set shottemp = null
endfunction
this one works fine , the dummys cast the spell and everything
and now the on where the dummys dont shoot ...
JASS:
function Trig_mmgpoint_Actions takes nothing returns nothing
local real x = GetLocationX(GetSpellTargetLoc())
local real y = GetLocationY(GetSpellTargetLoc())
local unit dummy = null
local unit caster = GetSpellAbilityUnit()
local integer LoopAIndex = 1
local integer LoopAIndexEnd = 10
loop
exitwhen LoopAIndex > LoopAIndexEnd
set dummy = CreateUnitAtLoc( GetOwningPlayer(caster), 'h005', GetUnitLoc(caster), 0 )
call ShowUnitHide ( dummy )
call SetUnitInvulnerable( dummy , true )
call SelectUnitRemoveForPlayer( dummy, GetOwningPlayer(dummy) )
call IssuePointOrder( dummy, "shockwave", x , y )
call PolledWait(0.1)
call RemoveUnit( dummy )
set LoopAIndex = LoopAIndex + 1
endloop
set dummy = null
endfunction
the loop is executed , i have tested this with some text displayed , the dummys are created , but the dont use the ability.
also the use of location or x and y in issuepointorder does not change anything
i dont know why and really need help here :/
Last edited by a moderator: