- Joined
- Oct 18, 2007
- Messages
- 930
ok im making a kind of moving spell but i cant get this to work
I get the error here
i get the error
someone know why? and if you know why, tell me where
JASS:
function C_Conditions takes nothing returns boolean
return GetSpellAbilityId() == 'A000'
endfunction
function C_Move takes unit u, unit a, real dist, real angle, location loc returns nothing
endfunction
function C_Actions takes nothing returns nothing
local timer t = CreateTimer()
local unit u = GetTriggerUnit()
local unit a = GetSpellTargetUnit()
local location loc1
local location loc2
local real dist
local real angle
call TimerStart(t, 0.035, true, function C_Move( u, t, dist, angle, loc1 ))
endfunction
//*-------------------------------------------------------------------------------------------------------*
//| *END OF SCRIPT* |
//*-------------------------------------------------------------------------------------------------------*
function InitTrig_Charge takes nothing returns nothing
local trigger C = CreateTrigger()
call TriggerRegisterAnyUnitEventBJ( C, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( C, Condition( function C_Actions ) )
call TriggerAddAction( C, function C_Actions )
set C = null
endfunction
I get the error here
JASS:
call TimerStart(t, 0.035, true, function C_Actions( u, a, dist, angle, loc1 ))
Code:
Line 31: expected '
someone know why? and if you know why, tell me where
Last edited: