• 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.

[Model] Remove effect

Status
Not open for further replies.
Level 14
Joined
Jul 12, 2011
Messages
1,371
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