HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

local special effect (what is the text for it)

02-06-2007, 03:45 AM#1
Mythic Fr0st
how do I declare local special effect

?

local special effect sfx = blah

also

how do I do

set sfx = (Last Created Special Effect)
02-06-2007, 03:47 AM#2
Naakaloh
local effect sfx = blah
Edit: You'll have to be more specific about the second part.
02-06-2007, 03:52 AM#3
Mythic Fr0st
I need to store the last created special effect into the variable sfx
02-06-2007, 03:55 AM#4
Rising_Dusk
Collapse JASS:
local effect MyEffect = bj_lastCreatedEffect 
Though I must ask --
Why not just create the special effect in the local instead of creating and then setting as last created?
Just a thought.
02-06-2007, 04:02 AM#5
Alevice
Collapse JASS:
set sfx = bj_lastCreatedEffect
//or ever better

//either
set sfx = AddSpecialEffect("path",x_coordinate,y_coordinate)
//or
set sfx = AddSpecialEffectLoc("path",loc_point_etc)
//or
set sfx = AddSpecialEffectTarget("path",doodad_unit_whatever,"origin or any attchemnt point")
//depending what you need
02-06-2007, 06:11 AM#6
Mythic Fr0st
Thanks guys