A Variable Question...

cybernetic

New Member
Reaction score
1
hello everyone,

my first question is: say i have 1 hero. and i set a variable for this hero.
EG: Set Player_1_Hero = (Entering Unit). In this case my hero will be the (entering unit).

Ok now that we have a variable set for my hero, will it interfer if i decided to set yet another variable for this hero?
EG: Set Casting_Unit = (Casting Unit). in this case my hero will be the (casting unit) and ive just set him the "Casting_Unit" variable.

my question is, do these 2 variables which ive assigned to my specific hero interfer at all? or can i just keep assigning muiltiple variables to any hero/ unit i wish?

thanks in advance.
 

Vaius

New Member
Reaction score
19
No, different variables do not interfere with each other (to my knowledge).
 

Sui-cookie

You can change this now in User CP.
Reaction score
49
your right, those dont interfere :] as long as no variables involve editing the unit in any way, you can have 1 or you can have OVER 9000!!! variables using the same unit :]
xD so many replies in the time it took me to make this one...
 

cybernetic

New Member
Reaction score
1
thank you guys :)

another question however,

what if i have 1 variable linked to 2 different units?

any problems there?
 

Azylaminaz

Vox Populi
Reaction score
91
You can't.
Set a = Get Triggering Unit
Set a = Get Targeted Unit

a will be set to Targeted Unit.

It redefines, doesn't set it twice.

Use groups if you want multiple units in a single variable... or arrays.
 
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