hey guise. I need a way to assosciate an integer value to a unit, or detect which spot in an array it has. I have yet to find a way to do this. I tried to use the maximum energy of the unit, but there is no way to find that value through triggers.
Basically, when i add a unit in the game, i store it in a unit array, and I need to be able to get which spot in the array the given unit has
You are able to specify an index and a value that you can attach to a specific unit. The property is arbitrary so it is only useful for doing things through triggers.
Custom Value Index: 0 could equal 567.00
Custom Value Index: 1 could be set at 0.0 or 1.0 to be used as a boolean value when reading it.
There are a great deal of applications you can use this in and I myself find it VERY useful. Im zany for custom values.... they make me SO DAMN EXCITED.
hey guise. I need a way to assosciate an integer value to a unit, or detect which spot in an array it has. I have yet to find a way to do this. I tried to use the maximum energy of the unit, but there is no way to find that value through triggers.
Basically, when i add a unit in the game, i store it in a unit array, and I need to be able to get which spot in the array the given unit has
Set Custom Value of Unit
You are able to specify an index and a value that you can attach to a specific unit. The property is arbitrary so it is only useful for doing things through triggers.
Custom Value Index: 0 could equal 567.00
Custom Value Index: 1 could be set at 0.0 or 1.0 to be used as a boolean value when reading it.
There are a great deal of applications you can use this in and I myself find it VERY useful. Im zany for custom values.... they make me SO DAMN EXCITED.
@KineMorto: Go
thanks a lot :)