Difference between revisions of "TryToMoveTo - ReferenceAlias"
→Syntax
imported>Scornett m (Reverted edits by Scornett-Bot (talk) to last revision by Jlundin) |
imported>Thingy Person (→Syntax) |
||
Line 9: | Line 9: | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
bool Function TryToMoveTo(ObjectReference RefToMoveTo) | bool Function TryToMoveTo(ObjectReference RefToMoveTo) | ||
ObjectReference Ref = GetReference() | |||
if Ref | |||
Ref.MoveTo(RefToMoveTo) | |||
Return True | |||
EndIf | |||
Return False | |||
EndFunction | |||
</source> | </source> | ||