• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Moving weather effect.

Status
Not open for further replies.
Level 4
Joined
Mar 24, 2009
Messages
67
Is it possible to make a weather effect follow a unit? Like when a unit casts a spell the snow/rain effect will follow the unit.
 
  • Trigger1
  • Events
    • Unit - A unit starts the effect of an ability
  • Conditions
    • (Ability being cast) Equal to X
  • Actions
    • Set Caster1 = (Triggering unit)
    • Set Point1 = (Position of (Caster1))
    • Set Region1 = (Region centered at (Point1) with size (500, 500)
    • Environment - Create Ashenvale Rain (Heavy) at Region1
    • Environment - Turn (Last created weather effect) to On
    • Trigger - Turn on Trigger2 <gen>
  • Trigger2
  • Events
    • Time - Every 0.03 seconds of game time
  • Conditions
    • ((Caster1) is alive) Equal to True
  • Actions
    • Set Point1 = (Position of (Caster1))
    • Region - Move Region1 on Point1
    • Custom script: call RemoveLocation (udg_Point1)
 
Level 4
Joined
Jun 16, 2009
Messages
92
Can I use the rect again if I do that?

lol, no you cannot.

Also, I'm not sure what you're trying to do, but if it's like a special effect, you probably wanna run an if/then/else checking if your guy is still alive, and if not, to turn the weather effect off.
 
Status
Not open for further replies.
Top