1. Choose your means of doom in the 17th Mini Mapping Contest Poll.
    Dismiss Notice
  2. A slave to two rhythms, the 22nd Terraining Contest is here.
    Dismiss Notice
  3. The heavens smile on the old faithful. The 16th Techtree Contest has begun.
    Dismiss Notice
  4. The die is cast - the 6th Melee Mapping Contest results have been announced. Onward to the Hive Cup!
    Dismiss Notice
  5. The glory of the 20th Icon Contest is yours for the taking!
    Dismiss Notice
  6. Shoot to thrill, play to kill. Sate your hunger with the 33rd Modeling Contest!
    Dismiss Notice
  7. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Looking to emulate lightning strike

Discussion in 'World Editor Help Zone' started by praudmur, Jun 4, 2020.

  1. praudmur

    praudmur

    Joined:
    May 26, 2012
    Messages:
    73
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Hello!
    I want to emulate a lightning strike for player(Scene happens in the middle of the storm).
    It's not nececcary to spawn the lightning itself - I just want to brighten up a screen a little(a flash).
    I don't know where to look for this.Any tips?
     
  2. Warseeker

    Warseeker

    Joined:
    Feb 18, 2014
    Messages:
    3,078
    Resources:
    2
    Maps:
    2
    Resources:
    2
    You mean like in the fourth mission of the Sentinel campaign ? Those flash lightnings that occur from time to time ?
     
  3. praudmur

    praudmur

    Joined:
    May 26, 2012
    Messages:
    73
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Exactly! Thanks.
     
  4. BloodSoul

    BloodSoul

    Joined:
    May 10, 2009
    Messages:
    865
    Resources:
    2
    Spells:
    2
    Resources:
    2
    Blizzard used the "Cinematic - Fade Filter" plus "Play - Sound" actions to do it. Here's how they did the "Occasional Lightning" from map NightElfX04:
    • Occasional Lightning
      • Events
        • Time - LightningTimer expires
      • Conditions
      • Actions
        • Wait until (InCinematic Equal to False), checking every 1.00 seconds
        • Countdown Timer - Start LightningTimer as a One-shot timer that will expire in (Random real number between 25.00 and 60.00) seconds
        • Cinematic - Fade out and back in over 0.12 seconds using texture White Mask and color (100.00%, 100.00%, 100.00%) with 5.00% transparency
        • Wait 0.03 seconds
        • Cinematic - Fade out and back in over 0.12 seconds using texture White Mask and color (100.00%, 100.00%, 100.00%) with 5.00% transparency
        • Wait 0.20 seconds
        • Set RandomSound = (Random integer number between 1 and 2)
        • If (RandomSound Equal to 1) then do (Sound - Play LightningBolt1 <gen>) else do (Do nothing)
        • If (RandomSound Equal to 2) then do (Sound - Play RollingThunder1 <gen>) else do (Do nothing)


    Do note that the timer from the event above is started in another trigger once the very first cinematic ends.
    • Countdown Timer - Start LightningTimer as a One-shot timer that will expire in 30.00 seconds
     
  5. Veritas 117

    Veritas 117

    Joined:
    Nov 17, 2010
    Messages:
    1,232
    Resources:
    0
    Resources:
    0
  6. praudmur

    praudmur

    Joined:
    May 26, 2012
    Messages:
    73
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Sorry I was not clear - I already copied the trigger from NightElvesTFT04.
    On my map the effect seemed to be a little epileptic-non-friendly so I increased transparency to 80%.
    Thanks everyone!