SetPos
From GECK
A function included in the GECK for Fallout 3.
Contents
Description
Sets the position of the calling object relative to the world on the specified axis (X, Y, or Z).
Syntax
[Object].SetPos Axis:char{X, Y, Z} Pos:float
Example
ActorRef.SetPos Z 10520 Player.SetPos X 566.34
Notes
- Consider using MoveTo if you are trying to place objects in remote cells.
- This function will work on Activators with no issues, but Static, Static Collections, Tree, Flora, and Furniture forms will not be affected unless they are spawned dynamically, likely done via PlaceAtMe.
- Moving an object with SetPos that supports dynamic Navmesh cutting will not have the cutout update. Use Update3D after moving to resume normal behavior.
See Also
- SetPosEx - a faster version that works on all three axes at once. Also ignores formtype limitations.
- GetAngle
- GetHeadingAngle
- GetPos
- MoveToCell
- MoveTo
- Rotate
- SetAngle