• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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