Background for Skyrim SE
Member of the ObjectReference script
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

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")
endIf

Auto-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)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.