Special effect problem

Kazuga

Let the game begin...
Reaction score
110
JASS:
call TimedLightning ("CLPB", x, y, 0, x2, y2, 0, duration, fade_on, init_fade, end_fade)
call TimedLightning ("CLPB", x, y, 0, x3, y3, 0, duration, fade_on, init_fade, end_fade)
call TimedLightning ("CLPB", x, y, 0, x4, y4, 0, duration, fade_on, init_fade, end_fade)

Errors:
Undeclared variable:
duritaion
fade_on
init_fade
end_fade

Edit:
Must have missed to add something?
 

Flare

Stops copies me!
Reaction score
662
*sigh*

Those are just the names of the arguments used within the function. Change them to any value you like (within these limiations)

  • duration - Greater than 0 (haven't tested with <0, but I don't think it will work)
    *Lightning will fade from (init_fade) to (end_fade) over the full duration (i.e. the lightning won't stay at the same visibility % for any amount of time)
  • fade_on - True or false, cannot get much simpler than that
  • init_fade - Something between 0 and 1 (haven't tested outside those bounds yet)
  • end_fade - Same as init_fade

So, lets say you want your lightning to fade from 100% visibility to 0% visibility over 3 seconds. Here's the function call
JASS:
call TimedLightning (&quot;CLPB&quot;, x, y, 0, x2, y2, 0, 3., true, 1, 0)
 

Kazuga

Let the game begin...
Reaction score
110
Aha^^ sorry but it is kind of hard when you have never worked with it before^^

Got it to work btw, thanks :thup:
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top