MoveToInteractionLocation - ObjectReference: Difference between revisions
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 == | ||
< | <syntaxhighlight lang="papyrus"> | ||
Function MoveToInteractionLocation(ObjectReference akTarget) native | Function MoveToInteractionLocation(ObjectReference akTarget) native | ||
</ | </syntaxhighlight> | ||
== Parameters == | == Parameters == | ||
| Line 18: | Line 18: | ||
== Examples == | == Examples == | ||
< | <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) | ||
</ | </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) nativeParameters[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)