- Joined
- Jun 1, 2007
- Messages
- 98
Well, as the title suggests, I have some code which returns that error for no reason I know of. Here is the code:
--Fixed
The Polled wait was making it not work. Does anyone know a way to delay it other than that?
JASS:
function Trig_EnterExitArena_Function takes nothing returns nothing
local unit caster = GetHandleUnit( gg_trg_EnterExitArena, "Caster" )
call PolledWait( 1 )
local effect tele = AddSpecialEffectTarget( "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl", caster, "origin" ) //It says this line is the erronous one
call DestroyEffect( tele )
set tele = null
if RectContainsUnit( gg_rct_NotArena, caster ) then
//Todo
endif
endfunction
function Trig_EnterExitArena_Actions takes nothing returns nothing
local trigger t = CreateTrigger()
call TriggerAddAction( t, function Trig_EnterExitArena_Function )
call TriggerExecute( t )
call DestroyTrigger( t )
endfunction
//===========================================================================
function InitTrig_EnterExitArena takes nothing returns nothing
set gg_trg_EnterExitArena = CreateTrigger( )
call TriggerAddAction( gg_trg_EnterExitArena, function Trig_EnterExitArena_Actions )
endfunction
--Fixed
The Polled wait was making it not work. Does anyone know a way to delay it other than that?
Last edited: