Difference between revisions of "MoveToIfUnloaded - ObjectReference"
Jump to navigation
Jump to search
→Syntax
imported>Scornett m (Reverted edits by Scornett-Bot (talk) to last revision by Jlundin) |
imported>Thingy Person (→Syntax) |
||
Line 8: | Line 8: | ||
== Syntax == | == Syntax == | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
bool | bool function MoveToIfUnloaded(ObjectReference akTarget, float afXOffset = 0.0, float afYOffset = 0.0, float afZOffset = 0.0) | ||
if !Is3DLoaded() | |||
MoveTo(akTarget, afXOffset, afYOffset, afZOffset) | |||
return true | |||
else | |||
return false | |||
endif | |||
endFunction | |||
</source> | </source> | ||