Background for Skyrim SE
Member of the ObjectReference script
voidfunctionMoveToWhenUnloaded(ObjectReferenceakTarget, floatafXOffset=0.0, floatafYOffset=0.0, floatafZOffset=0.0)

Description

Wiki Description

DEPRECATED ----- DO NOT USE

Member of: ObjectReference

Moves this reference to the location of the target reference, with the specified offset, if both this reference and the target reference are in current locations which are not currently loaded.

Caution: this will pause the calling script until the actor is unloaded and moved.

Documentation String

DEPRECATED: DO NOT USE. Calls MoveTo if both the calling ObjectReference and the akTarget ObjectReference have current locations that are not loaded.

Documentation Comment

jduvall:


Parameters

  1. ObjectReferenceakTarget

    CK Wiki Description

    The target reference to move this one to.

  2. floatafXOffset=0.0

    CK Wiki Description

    How much to offset the move in the X direction.

  3. floatafYOffset=0.0

    CK Wiki Description

    How much to offset the move in the Y direction.

  4. floatafZOffset=0.0

    CK Wiki Description

    How much to offset the move in the Z direction.


Examples

No human-generated examples found for this function.

Auto-Generated Example

ObjectReference myObjectReference__akTarget
float myFloat__afXOffset
float myFloat__afYOffset
float myFloat__afZOffset

myObjectReference__toCallFunctionOn.MoveToWhenUnloaded(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.