Difference between revisions of "SetPosition - ObjectReference"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Scornett
m (Reverted edits by Scornett-Bot (talk) to last revision by 10.0.8.34)
 
imported>Catwheezle
(Added "see also" section items.)
Line 24: Line 24:
StatueProperty.SetPosition(0.0, 0.0, 0.0)
StatueProperty.SetPosition(0.0, 0.0, 0.0)
</source>
</source>
== Notes==
* SetPosition() should be avoided for placing other actors in sight of the player, as they will suddenly appear in an unrealistic way. Instead, consider placing them nearby but out of sight, and making them approach the player using [[PathToReference]].


== See Also ==
== See Also ==
Line 30: Line 33:
*[[GetPositionY - ObjectReference]]
*[[GetPositionY - ObjectReference]]
*[[GetPositionZ - ObjectReference]]
*[[GetPositionZ - ObjectReference]]
*[[MoveToMyEditorLocation - ObjectReference]]
*[[MoveToInteractionLocation - ObjectReference]]
*[[PathToReference]]
*[[SetPosition]]

Revision as of 22:15, 14 February 2012

Member of: ObjectReference Script

Sets the object's current position in the world.

Syntax

Function SetPosition(float afX, float afY, float afZ) native

Parameters

  • afX: Position along the X axis.
  • afY: Position along the Y axis.
  • afZ: Position along the Z axis.

Return Value

None.

Examples

; Set the statue to be at the center of the world
StatueProperty.SetPosition(0.0, 0.0, 0.0)

Notes

  • SetPosition() should be avoided for placing other actors in sight of the player, as they will suddenly appear in an unrealistic way. Instead, consider placing them nearby but out of sight, and making them approach the player using PathToReference.

See Also