Fog

WrathMonkey

New Member
Reaction score
5
How would one make it in a TD so that when a tower, say it's called Fog Tower (it won't really, but bear with me >.>), generate fog around a unit when it's attacked?
 
Reaction score
456
What kind of fog? 'Weather fog' is very hard to control (in my opinion). You could use the cloud model, but it might be way too dense.

Code:
Fog Tower
    Events
        Unit - A unit Is attacked
    Conditions
        (Unit-type of (Attacking unit)) Equal to (==) Fog Tower
    Actions
        Set fogPoint = (Position of (Triggering unit))
        Environment - Create at (Region centered at fogPoint with size (150.00, 150.00)) the weather effect Dungeon White Fog (Heavy)

Of course, the fog needs some removing too.
 

WrathMonkey

New Member
Reaction score
5
Yea, I would want it to be removed after 5 seconds.

Would that trigger make it stay with the unit, or just the spot where it was attacked?
 
Reaction score
456
> or just the spot where it was attacked?
That'd be correct.

But if you attach a special effect to the unit (for an example Cloud), it will follow the unit.
 
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