Hi
Question No.1:
I think it is ok to use the following functions, but i dont know if there is a better way:
UnitInventoryCount
UnitAddItemByIdSwapped
Question No.2:
can you read the length of an array?
Question No.3:
How can i get an offset point in vJass?
i did it like this, but i'm not sure if this is the best solution
thats it, thank you!
Question No.1:
I think it is ok to use the following functions, but i dont know if there is a better way:
UnitInventoryCount
UnitAddItemByIdSwapped
Question No.2:
can you read the length of an array?
Question No.3:
How can i get an offset point in vJass?
i did it like this, but i'm not sure if this is the best solution
JASS:
local real x = GetUnitX(u)
local real y = GetUnitY(u)
local real x2 = GetLocationX(Location(x, y)) + 600.00 * Cos(f * bj_DEGTORAD)
local real y2 = GetLocationY(Location(x, y)) + 600.00 * Sin(f * bj_DEGTORAD)
thats it, thank you!