boolfunctionMoveToIfUnloaded(ObjectReferenceakTarget, floatafXOffset=0.0, floatafYOffset=0.0, floatafZOffset=0.0)
[DEV SERVER] Loading description...
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
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)