Grurf
Ultra Cool Member
- Reaction score
- 30
What is wrong with this piece of JASS:
I started with a big trigger, then isolated the problem to this. The compiler gives the error "Expected a code statement" on the line with the special effect. Some things you might want to know:
1. If I take away the "call RemoveLocation( targetloc )" it compiles fine.
2. Changing the variable names doesn't make a difference.
3. Removing other local locations (in other functions) doesn't give any problems.
4. Any trigger gives the same error if this function is inside it.
Code:
function SotEA_Actions takes nothing returns nothing
local location targetloc = Location( 0.0, 0.0 )
call RemoveLocation( targetloc )
local effect castPoint = AddSpecialEffect( "Abilities\\Spells\\NightElf\\Starfall\\StarfallCaster.mdl", 0.0, 0.0 )
endfunction
I started with a big trigger, then isolated the problem to this. The compiler gives the error "Expected a code statement" on the line with the special effect. Some things you might want to know:
1. If I take away the "call RemoveLocation( targetloc )" it compiles fine.
2. Changing the variable names doesn't make a difference.
3. Removing other local locations (in other functions) doesn't give any problems.
4. Any trigger gives the same error if this function is inside it.