Timed Life

M

mybediswet

Guest
I made a structure that can be massed and i would like it to have a timed life before it destroys. Is their some way for a structure to have a timed life and if so how? -TY
 

Manee

New Member
Reaction score
20
Code:
Unit - Add a 30.00 second Generic expiration timer to (Triggering unit)
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
well either you use the trigger adding an expiration timer, or you give it a negative hitpoint regeneration.
 
M

mybediswet

Guest
But how will the trigger know which structure to give a timer? I tried putting the trigger on exact same as yours but it still doesn't work
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
which structure do you want to have a timed life? are you creating the structure via a trigger use 'last created structure' if you want a structure which was build by a player use 'constructed structure' and if you want a structure somewhere on the initial map just select it.
 
M

mybediswet

Guest
Well the hero can create spiked boxes "walls" and i want it so that the "walls" are destroyed after awhile.
 

Manee

New Member
Reaction score
20
Code:
E
Unit - A unit Finishes construction
C
(Constructed structure) Equal to XXXX
A
Unit - Add a 30.00 second Generic expiration timer to (Constructed Structure)
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
is he building them? if yes use the script of Manee.
If he is spawning them via a skill, use summoned unit.
Code:
Trigger
    Event
        Unit - A unit Spawns a summoned unit
    Condition
        (Unit-type of (Summoned unit)) Equal to 'YourUnit'
    Action
        Unit - Add a 30.00 second Generic expiration timer to (Summoned 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