ObjectTemplate.SetPosition

From Pilot_51's Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

MDT description

SetPosition sets the position of a child object attached to the current object with the AddTemplate command. This position is relative to the center of the parent object. If this property is omitted, the position is 0/0/0.

Imagine that you are sitting in the middle of the jeep facing forward. The first parameter, X, is the right and left movement. If you were to scoot to your right you would be moving positively in the X axis; move to your left, you would be moving negatively. The second parameter, Y, is your height off the ground. If you were to jump straight up, you would be moving positively in the Y axis. Finally, the third parameter, Z, is forward and reverse.
Source and more details

Additional Description