Special effects

Axe.killer

New Member
Reaction score
24
Code:
unitspecial
    Events
        Unit - A unit Is issued an order targeting a point
    Conditions
    Actions
        Special Effect - Create a special effect at (Target point of issued order) using Abilities\Spells\NightElf\TrueshotAura\TrueshotAura.mdl
        Wait 2.00 seconds
        Special Effect - Destroy (Last created special effect)

this is my current code. What im looking for is when a demolisher attacks (it attacks random points due to my other triggers), it creates a special effect on that spot. When it is finished with its attack, i want the special effect from that attack to dissapear, and thus the cycle repeats itself. There will be several other demolishers. The wait 5 seconds thing and destroy last created special effect dosent work because there are simontaneous special effects at once.
 

SFilip

Gone but not forgotten
Reaction score
634
Create a variable of type special effect and call it s for example.
As your very first action use a custom script:
local effect udg_s
Then right after creating the effect do a Set s = (Last created special effect).
Finally as your last action use this custom script
set udg_s = null
And there you have it.
 

Axe.killer

New Member
Reaction score
24
Create a variable of type special effect and call it s for example.
As your very first action use a custom script:
local effect udg_s
Then right after creating the effect do a Set s = (Last created special effect).
Finally as your last action use this custom script
set udg_s = null
And there you have it.

thanx ill see if it works!
 

Axe.killer

New Member
Reaction score
24
it dosent work
heres my script
Code:
unitspecial
    Events
        Unit - A unit Is issued an order targeting a point
    Conditions
        ((Unit-type of (Triggering unit)) Equal to Demolisher) or ((Unit-type of (Triggering unit)) Equal to mortar team)
    Actions
        Custom script:   local effect udg_s
        Special Effect - Create a special effect at (Target point of issued order) using Abilities\Spells\NightElf\TrueshotAura\TrueshotAura.mdl
        Set s = (Last created special effect)
        Wait 3.00 seconds
        Custom script:   set udg_s = null
the problem with the trigger you gave me is the special effects dont dissapear after the 3 seconds.
 

Axe.killer

New Member
Reaction score
24
i think part of the problem might be that the variable isnt being declared and destroyed properly but anyone have any other suggestions?
 
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