Real Division and addition

Reaction score
86
How exactly does real division and addition work?
By that i mean how accurate is it? and when you call createUnit(...x,y...) are those integers?
also if you do real/2 does that return an integer or real? is it more accurate using real/2.0?\

EDIT: Nevermind!! CreateUnit is a little weird. Doesnt create it at the exact x,y in real coords. I had to setunitX and Y in order to get it on the right coords.
 

tooltiperror

Super Moderator
Reaction score
231
Since when does [LJASS]CreateUnit[/LJASS] act inaccurately? I think you can just use decimal points.
 
Reaction score
86
idk exactly what the problem was but createunit(...x,y...) did not put the unit in the same position as that and setting the unit's x and y afterwards.
 

Weep

Godspeed to the sound of the pounding
Reaction score
400
Could there have been some terrain or another unit in the way? CreateUnit sometimes considers collision and pathing even for units which ought to ignore it (particularly, creating ground units with Locust).
 
Reaction score
86
<--- yeah Weep is right. There were units in the way. But it was weird. Some units would stack on top but in other cases it would be shifted off by like 1.
 
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