• 🏆 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!

[Model] Remove effect

Status
Not open for further replies.
Level 14
Joined
Jul 12, 2011
Messages
1,370
You could just create the effect as a dummy unit a kill him when he starts doing this effect.
For example if after 4 seconds it starts causing that problem use this:
  • A Trigger
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Frost Nova
    • Actions
      • Unit - Create 1 Peasant for (Owner of (Casting unit)) at (Position of (Target unit of ability being cast)) facing 270.00 degrees
      • Set FrozenEffect = (Last created unit)
      • Wait 3.99 seconds
      • Unit - Kill FrozenEffect
Frost Nova will be changed in the spell you want and Footman in the dummy unit you'll create using this model.
I hope my advise was helpful!!:wink:
 
Level 20
Joined
Jun 27, 2011
Messages
1,864
You could just create the effect as a dummy unit a kill him when he starts doing this effect.
For example if after 4 seconds it starts causing that problem use this:
  • A Trigger
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Frost Nova
    • Actions
      • Unit - Create 1 Peasant for (Owner of (Casting unit)) at (Position of (Target unit of ability being cast)) facing 270.00 degrees
      • Set FrozenEffect = (Last created unit)
      • Wait 3.99 seconds
      • Unit - Kill FrozenEffect
Frost Nova will be changed in the spell you want and Footman in the dummy unit you'll create using this model.
I hope my advise was helpful!!:wink:

You're leaking and it is not MUI. Here's a better example :p
  • Freeze
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Frost Nova
    • Actions
      • Set Temp_Point = (Position of (Target unit of ability being cast))
      • Unit - Create 1 Frozen - Dummy for (Owner of (Triggering unit)) at Temp_Point facing Default building facing degrees
      • Unit - Add a 3.99 second Generic expiration timer to (Last created unit)
      • Custom script: call RemoveLocation( udg_Temp_Point )
  • [/hidden]
 
Status
Not open for further replies.
Top