Unit's custom valueS! is it posible

Stefanman

Member
Reaction score
10
ye,i know there is only 1 custom value for unit,but i am sure there is some way to 'add' or whatever to call it,so unit can use more custom values,or can it be done by jass? if there is a way to evade jass,please evade it. this problem was anoying me much ,i usualy make in Game Maker,and when i want to set some variable of unit, i just write (eg) : tank.custom_val_A = 5 ...like that.
 

Psiblade94122

In need of sleep
Reaction score
138
you can do this...

have warcraft set the customvalue to your units (kinda like numbering)
then have other variables with arrays, and have the array equal to the units customvalue
ie: (custom_val_A[custom value of (your unit)] = blah blah), (custom_val_B[custom value of (your unit)] = blah blah)
 

Stefanman

Member
Reaction score
10
oh

i think i understand what u mean :))) , here is how i understood :

when u create unit :
( i will write things bellow shortened)
unit create
var +=1
v[var]=last created unit
last created unit set custom val = var

with these values i have,it will be easy to make some things :D
 
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