• 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.

[Trigger] Lightning effects

Status
Not open for further replies.
Level 28
Joined
Mar 25, 2008
Messages
2,955
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
 
Level 3
Joined
Jul 6, 2008
Messages
42
  • 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.
 
Level 18
Joined
Oct 18, 2007
Messages
930
  • 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?
 
Level 3
Joined
Jul 6, 2008
Messages
42
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.
Top