• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

How to create lightning effect with Z offset by trigger

Status
Not open for further replies.
Level 11
Joined
Oct 20, 2007
Messages
342
i need the lightning effect,
like chain lightning, there got a lightning from a point meet to another point.
It could be long and short.
i think there got no model file could be like that.
but if got, the properties of the model file is not same with lightning effect.
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
Custom string: set bj_lastCreatedLightning = AddLightningEx("<lightning code>",true,x1,y1,z1,x2,y2,z2)
for checking the lightning codes create a GUI lightning creater action
convert it to jass and look from there
they are like "CHLP" (I mean 4 character string)
after than use it with Last Created Lightning Effect when destroying or setting it to a variable

... you got me
 
Level 11
Joined
Oct 20, 2007
Messages
342
MoveLightning(lightning,true,x1,y1,z1,x2,y2,z2) as I remember

Hohoho, thx for the information.
its true about 95%
in a very lucky situation i found out what the wrong.
its leak a Ex word :xxd:
very luckily i found the answer from you:
Call MoveLightningEx(lightning,true,x1,y1,z1,x2,y2,z2) as I remember

thankyou very much
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
I didnt have warcraft with me
not all guys in the world have internet in their homes
think twice when be4 u laugh to something
 
Status
Not open for further replies.
Top