• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

[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