• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] Lightning effects

Status
Not open for further replies.
Level 28
Joined
Mar 25, 2008
Messages
2,954
Urr yeah,
isn't it possible to make lightning effects work like special effects?
When you remove special effects using
  • Custom script: call DestroyEffect(udg_tempeffect)
, they play their death anim.
But if I use
  • Lightning - Create a 'chainlightning' primary lightning effect from source tmppt[0] to target tmppt[1]
  • Set templightning = (last created lightning effect)
  • Custom script: call DestroyLightning(udg_templightning)
it surely gets destroyed at once but doesn't appear.

Now my question is in particular, can I get lightning effects to stay a time on the map?

(Please don't come up with 'abilities aka chainlightning', this is just for curiosity)

Pie will be given..
7742-6883_49_1_det_001.jpg
 
  • Custom script: local lightning lightE
  • Lightning - Create a Chain Lightning - Primary lightning effect from source tmppt[0] to target tmppt[1])
  • Custom script: set lightE = GetLastCreatedLightningBJ()
  • Wait 1.50 game-time seconds
  • Custom script: call DestroyLightningBJ(lightE)
Well , by using local variable..

You can also try to create 2 dummy:
A : locust with life drain ability . without attack ability.
B : without locust ability , instant paused after create , neutral passive unit , size = 0.00 scale value.

create A at source , B at target point .Order A to life drain B and hide B instantly.
 
  • Custom script: local lightning lightE
  • Lightning - Create a Chain Lightning - Primary lightning effect from source tmppt[0] to target tmppt[1])
  • Custom script: set lightE = GetLastCreatedLightningBJ()
  • Wait 1.50 game-time seconds
  • Custom script: call DestroyLightningBJ(lightE)
Well , by using local variable..

You can also try to create 2 dummy:
A : locust with life drain ability . without attack ability.
B : without locust ability , instant paused after create , neutral passive unit , size = 0.00 scale value.

create A at source , B at target point .Order A to life drain B and hide B instantly.

Ok, first of all; BJ's are stupid, they just fuck up Wc3 and using waits is not that good ;)
But hey, you're learning Jass right?
 
Well , can't consider learning , JASS needed in quite a number of triggering .
Hence , a little knowledge in JASS in needed.

Wait game-time is ok , i think . since it is follow the game time .
BJ suck Then use :

  • Custom script: call DestroyLightning(lightE)
 
Status
Not open for further replies.
Back
Top