boolfunctionMoveToIfUnloaded(ObjectReferenceakTarget, floatafXOffset=0.0, floatafYOffset=0.0, floatafZOffset=0.0)
Description
Wiki Description
Moves this reference to the location of the target reference, with the specified offset, if this reference is currently unloaded (has no 3D). If it is loaded, it does nothing.
Documentation String
Calls MoveTo if the calling ObjectReference is currently unloaded. Doesn't do anything if it IS loaded. No waiting or while loops. Returns true if it does the moveto
Documentation Comment
kkuhlmann:
Caveats
CK Wiki - Notes
- Using this on actors in sight of the player, will cause the actors to uequip all their armor after the move is complete.
Parameters
ObjectReferenceakTarget
CK Wiki Description
The target reference to move this one to.
floatafXOffset=0.0
CK Wiki Description
How much to offset the move in the X direction.
floatafYOffset=0.0
CK Wiki Description
How much to offset the move in the Y direction.
floatafZOffset=0.0
CK Wiki Description
How much to offset the move in the Z direction.
Examples
; Move the box to the shelf, but only if it is unloaded
if Box.MoveToIfUnloaded(Shelf)
Debug.Trace("Moved the box")
endIf; Move the box above the shelf, but only if it is unloaded
if Box.MoveToIfUnloaded(Shelf, 0.0, 0.0, 1.0)
Debug.Trace("Moved the box above the shelf")
endIfAuto-Generated Example
ObjectReference myObjectReference__akTarget
float myFloat__afXOffset
float myFloat__afYOffset
float myFloat__afZOffset
bool returnedValue = myObjectReference__toCallFunctionOn.MoveToIfUnloaded(myObjectReference__akTarget, myFloat__afXOffset, myFloat__afYOffset, myFloat__afZOffset)