Background for Fallout 4
Member of the ObjectReference script
voidfunctionAttachTo(ObjectReferenceakParent)Native

Description

Wiki Description

Attaches this ref to the specified parent ref, which means it will follow the parent's attach ref node.

Documentation Comment

Attach this reference to the specified parent (only works on created refs)


Caveats

CK Wiki - Notes

  • The ref this is called on must be a created ref. This function will not work on non-created refs.
  • This operates identically to the attach parameter on ObjectReference.PlaceAtNode(...), so if you're creating a new object and want to attach it immediately, it is faster to just use PlaceAtNode instead of separate Place, move, and attach calls.

Parameters

ObjectReferenceakParent

CK Wiki Description

The parent to attach this ref to


Examples

; Attach the grabby hand to the crane arm
GrabbyHand.AttachTo(CraneArm)

Auto-Generated Example

ObjectReference myObjectReference__akParent

myObjectReference__toCallFunctionOn.AttachTo(myObjectReference__akParent)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.