Probably in the code archives, but I can't find it. I can't figure out how to efficiently use alignToVector for this, so is there a way to make an object move towards a point smoothly in a straight line, and then stop when it reaches there? I would prefer if I could just use an x y and z position to run the calculation too, but I'm not being picky.
Right now I have this incredibly poorly done code snippet here, which is just for testing means.
Right now I have this incredibly poorly done code snippet here, which is just for testing means.
for s.settler = each settler if s\job = job_move s\dstx = order_x s\dsty = order_y s\dstz = order_z aligntovector s\picker,s\dstx,s\dsty,s\dstz,2 moveentity s\picker,0,0,2 s\x = entityx(s\picker) s\z = entityz(s\picker) endif s\y = terrainheight(terrain,s\x,s\z) * 128 + 1 positionentity s\picker,s\x,s\y,s\z,1 positionentity s\image,s\x,s\y,s\z,1 next