Object to terrain level

Recommended Posts

I'm pretty confused about all the setPos's and getPos's commands... I've placed down an object1 via editor, and now I'm trying to attach object2 to it, so that object2is always on the ground level, wherever I place objectX.

And if its possible, I'd like to be able to change x and y axis distances (like in attachTo).

the wiki entry of each position related command tells you which position format is needed or given by the command. this has to be taken into account everytime you use a command with a position as parameter or return value.

Joke apart, you should read what sarogahtyp wrote and disregard your attachTo setting (for all that stuff). That means you have to apply the code on ied2 AND cable1AND... with relative positions from ied1 I guess.