If a destructable dies, does its variable get reset?

LordSaddler1

New Member
Reaction score
4
I'm making it so if a unit dies, so does the sentinel on a destructable die, and the easiest way to do this is to remove and then ressurect the destructable. My question is, do I have to reset the destructable variable when it gets removed from the game?
 

Trithilon-V2

New Member
Reaction score
20
I think...its like units.
The if unit gets removed from the game... the variable wont be holding a null value nor will it hold the value of the unit....it will be undefined.
The best way to check this is to see if the Max life of the unit is 0.0. If yes the unit doesnt exist.
I guess the same should hold true with destructibles.
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,494
> I guess the same should hold true with destructibles.

Indeed.
But a tree that dies doesn't disappear. It just looks and feels different.

Given he said "then ressurect"...
No problem there.

Of course, if it's actually removed, that's a different story.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top