SetUnitX, Y, not working maybe?

Sevion

The DIY Ninja
Reaction score
413
I think you have the wrong idea.....

Locations and Vectors are two completely different things.....
 

Bribe

vJass errors are legion
Reaction score
67
JASS:
Location(0, 0) -> vector.createTerrainPoint(0, 0)
MoveLocation(loc, 0, 0) -> vec.getTerrainPoint(0, 0)

GetLocationX(loc) -> vec.x
GetLocationY(loc) -> vec.y
GetLocationZ(loc) -> vec.z

CreateUnitAtLoc(p, id, loc, 0) -> CreateUnit(p, id, vec.x, vec.y, 0)


Maybe you underestimated the capabilities of that library?

Vectors also can have values much more sophisticated than your average location.

JASS:
vec.x = 0.0 -> MoveLocation(loc, 0.0, GetLocationY(loc)) //no way to retain the z value
vec.y = 0.0 -> MoveLocation(loc, GetLocationX(loc), 0.0) //no way to retain the z value
vec.z = 0.0 //impossible with locations
 

Tyman2007

Ya Rly >.
Reaction score
74
Can you guys please not hijack my thread..

I seriosly couldn't care less right now about the use of locations and vectors.

Locations would be useful for hashtables, but I don't see a use of a hashtable outside of vanilla jass.
 
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