unit variables and 'ReviveHero'

SineCosine

I'm still looking for my Tangent
Reaction score
77
Let's say I do this..

01) set SomeUnit = SomeHero
02) SomeHero Dies..
03) call ReviveHero(SomeHero, x, y, true)

Will 'SomeUnit' still be set to that 'SomeHero' that died? o.0

Like, after steps One to Three..
I do this..
04) call SetUnitPosition(SomeUnit, x, y) <--- Will that work? I mean, the unit DID die.. but then, it got revived..
Do revived units get a different handle (or pointer or w/e it is called =x)?
 

Prozix

New Member
Reaction score
7
I'm not sure but I think heroes always keep their handles, unless you remove them from te game. Units will disappear from the game after some time, they won't be reviveable I think so their handles will point to something unexpected after a while :)
 

Weep

Godspeed to the sound of the pounding
Reaction score
400
Heroes stay in the game when they die (for revival purposes, of course) and variables will continue to point to them.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top