Explosive Wave Help.

Hero

─║╣ero─
Reaction score
250
Ok here is the code:

Code:
function Trig_Explosive_Wave_New_Conditions takes nothing returns boolean
    if ( not ( GetSpellAbilityId() == 'A005' ) ) then
        return false
    endif
    return true
endfunction
//This function is called evertime the local timer t expires.
function Explosive_Timer_End takes nothing returns nothing
    local timer t=GetExpiredTimer()
    local unit caster=GetHandleUnit(t,"caster")
    local real offset=GetHandleReal(t,"offset")
    local real angle=GetHandleReal(t,"angle")
    set offset=GetHandleReal(t,"offset")+40
    call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(caster),(GetHandleReal(t,"offset"),(GetHandleReal(t,"angle"),"Objects\\Spawnmodels\\Human\\HCancelDeath\\HCancelDeath.mdl" )
endfunction
    
function Trig_Explosive_Wave_New_Actions takes nothing returns nothing
    local timer t=CreateTimer()
    local unit caster=GetTriggerUnit()
    local real time=0
    local real angle=GetUnitFacing(caster)
    local real offset=0
    //The Locals are Put Into the Hander System Here
    call SetHandleHandle(t,"caster",caster)
    call SetHandleReal (t,"time",time)
    call SetHandleReal (t,"offset",offset)
    call SetHandleReal (t,"angle",angle)
    //Timer Starts Here
    //The timer is set at a .02 repeating duration and it calls the function Explosive_Timer_End at expiration
    call TimerStart(t,.02,true,function Explosive_Timer_End)
endfunction

     
    
    

//===========================================================================
function InitTrig_Explosive_Wave_New takes nothing returns nothing
    set gg_trg_Explosive_Wave_New = CreateTrigger(  )
    call TriggerRegisterAnyUnitEventBJ( gg_trg_Explosive_Wave_New, EVENT_PLAYER_UNIT_SPELL_CAST )
    call TriggerAddCondition( gg_trg_Explosive_Wave_New, Condition( function Trig_Explosive_Wave_New_Conditions ) )
    call TriggerAddAction( gg_trg_Explosive_Wave_New, function Trig_Explosive_Wave_New_Actions )
endfunction


problem is this line

Code:
AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(caster),(GetHandleReal(t,"offset"),(GetHandleReal(t,"angle"),"Objects\\Spawnmodels\\Human\\HCancelDeath\\HCancelDeath.mdl" )

WE keeps saying that in this line it is missinga ) but i can't figure out where...any help?

BTW: I am using Kattan's handle System..if you read the script you can figure out...

and yes i know that Polar Projection leaks..

any alternative for it?

________________________
EDIT: This is wierd but does anyone see a huge space in between the (GetHandleReal(t,"offset") part in the problem line??

for some reason it jsut showed up in TH when i made the script coded...don't worry about that it's not in WE
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
> (GetHandleReal(t,"angle")

The first ( is never closed. And not needed.

> PolarProjectionBJ(

The ( is never closed.


And change your condition to:
return GetSpellAbilityId() == 'A005'
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top