AttachTo - ObjectReference
Jump to navigation
Jump to search
Member of: ObjectReference Script
Attaches this ref to the specified parent ref, which means it will follow the parent's attach ref node.
Syntax[edit | edit source]
Function AttachTo(ObjectReference akParent) native
Parameters[edit | edit source]
- akParent: The parent to attach this ref to
Return Value[edit | edit source]
None
Examples[edit | edit source]
; Attach the grabby hand to the crane arm
GrabbyHand.AttachTo(CraneArm)
Notes[edit | edit source]
- 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 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.