Invisible Lightning Effects?

Jonnycakes

New Member
Reaction score
6
Hi, I am working on a tripwire spell and need a visual for, well, the tripwire. Lightning effects would be great, but I want my tripwire to be invisible(like stasis traps, goblin land mines, etc.) Is there a way to make lightning effects invisible?
 

Viikuna

No Marlo no game.
Reaction score
265
You can make your own lightning effect textures and edit lightning behaviour by importing a custom lightningdata.slk, so you could indeed make a nice looking tripwire with lightnings.

Lightning color can be safely edited locally, so you could just use [lJASS]GetLocalPlayer()[/lJASS] and make only your allies to see the tripwire and make it invisible to enemies.

( You could even make it have the more alpha the closer enemy hero is to it, which might also be pretty cool. )


So yes, its possible.

It goes pretty muchly like this:


JASS:
 if IsUnitAlly( myUnit, GetLocalPlayer() ) then
    set alpha=1.
else
    set alpha=0.
endif
call SetLightningColor( myLightning,r,g,b,alpha)
 

Jonnycakes

New Member
Reaction score
6
Hmmm...that helps a lot! I suppose I can add a dummy unit to the middle of the wire and check if it is visible to enemies (to decide whether they can see the wire with true sight or not). Time for coding-wish me luck! (and +rep for you, of course ;))
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top