HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Lightning Z stuff

03-23-2005, 05:01 PM#1
Daelin
Ok,

I'm a little upset. Blizzard promised some Z offset for lightnings and still, I don't see it anywhere, atleast under animation or lightning. And using dummies is quite a stupid ideas since you can't give them locust if you want them to target each other. So doesn't anyone know where that Z offset is?

~Daelin
03-23-2005, 05:18 PM#2
Taur
perhaps they just gave JASSers the option do so in JASS?
03-23-2005, 05:21 PM#3
Daelin
JASS is good as well as long as you could give me the code...

~Daelin
03-23-2005, 05:24 PM#4
Taur
well i think you know JASS, but really i have no clue about it, that was just a thought
03-24-2005, 02:55 PM#5
Vexorian
You should always have copies of scripts\common.j and scripts\blizzard.j from war3patch.mpq, common.j specially since 95% of blizzard.j functions suck
03-24-2005, 04:14 PM#6
johnfn
Code:
native AddLightningEx               takes string codeName, boolean checkVisibility, real x1, real y1, [size=4]real z1[/size], real x2, real y2,[size=4]real z2[/size] returns lightning

Have fun :)
03-24-2005, 04:19 PM#7
Taur
so does this mean it is only for JASS?
03-24-2005, 04:33 PM#8
johnfn
As far as I can see yes.
04-15-2005, 02:02 AM#9
EdwardSwolenToe
what does it return with? I dont think GetLastCreatedLightningBJ() works for it.
04-15-2005, 03:30 AM#10
Raptor--
did u read it? it says it right in the fragment, returns lightning

create a lightning variable and set it = to that
04-15-2005, 04:38 AM#11
EdwardSwolenToe
set it to what? get last created lightningbj() doesnt work.
04-15-2005, 07:55 AM#12
Raptor--
Quote:
Originally Posted by Raptor--
did u read it? it says it right in the fragment, returns lightning

create a lightning variable and set it = to that

ehem
04-15-2005, 07:56 AM#13
EdwardSwolenToe
never mind my ramblings.
04-15-2005, 08:00 AM#14
Raptor--
um, you're gonna have to actually call the function dude

L = AddLightningEx(string codeName, boolean checkVisibility, real x1, real y1, real z1, real x2, real y2,real z2)

notice how the function says returns lightning? that means it returns a lightning, ie it has to be stored in a lightning variable

sorry if that was a little ambiguous, but i assumed you knew how to use functions since you were asking about what it returns

ps, calm down there with the caps and the negative rep, something might explode ;)
04-15-2005, 08:27 AM#15
EdwardSwolenToe
Very sorry dude! lol ive been racking my brains trying to fix it. ty ty