MoveToInteractionLocation - ObjectReference: Difference between revisions

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Scornett
m (Reverted edits by Scornett-Bot (talk) to last revision by Rhavlovick)
 
m (Convert source tags to syntaxhighlight)
 
Line 7: Line 7:


== Syntax ==
== Syntax ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
Function MoveToInteractionLocation(ObjectReference akTarget) native
Function MoveToInteractionLocation(ObjectReference akTarget) native
</source>
</syntaxhighlight>


== Parameters ==
== Parameters ==
Line 18: Line 18:


== Examples ==
== Examples ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
; Move Bob to where he can interact with the lever
; Move Bob to where he can interact with the lever
Bob.MoveToInteractionLocation(SuperCoolLever)
Bob.MoveToInteractionLocation(SuperCoolLever)
</source>
</syntaxhighlight>


== See Also ==
== See Also ==
*[[ObjectReference Script]]
*[[ObjectReference Script]]
*[[MoveTo - ObjectReference]]
*[[MoveTo - ObjectReference]]

Latest revision as of 20:09, 5 September 2026

Member of: ObjectReference Script

Moves this reference to the location of the target reference's interaction location, also matching its rotation.

Syntax[edit | edit source]

Function MoveToInteractionLocation(ObjectReference akTarget) native

Parameters[edit | edit source]

  • akTarget: The target reference that contains the interaction location to move to.

Return Value[edit | edit source]

None.

Examples[edit | edit source]

; Move Bob to where he can interact with the lever
Bob.MoveToInteractionLocation(SuperCoolLever)

See Also[edit | edit source]