Background for Fallout 4
Member of the ObjectReference script
ObjectReferencefunctionPlaceAtNode(stringasNodeName, FormakFormToPlace, intaiCount=1, boolabForcePersist=false, boolabInitiallyDisabled=false, boolabDeleteWhenAble=true, boolabAttach=false)Native

Description

Wiki Description

Makes X new references of the passed in form, optionally forcing them to persist, and places them at the position of the given node in our object's 3D, returning the last one it created. If abAttach is true, the newly created ref is also attached to the calling one.

Documentation Comment

Create x copies of the passed in form (forcing them to persist if desired) and place them at the location of the given node, returning the last object created


Parameters

  1. stringasNodeName

    CK Wiki Description

    Node in our 3D to create references at

  2. FormakFormToPlace

    CK Wiki Description

    The base form to create references of.

    • Note:the akFormToPlace can be things such as MiscObject, ActorBase, etc...
  3. intaiCount=1

    CK Wiki Description

    How many references to make at once.

    • Caution: Only the last reference created is returned.
  4. boolabForcePersist=false

    CK Wiki Description

    True to force the created reference to be persistent.

  5. boolabInitiallyDisabled=false

    CK Wiki Description

    True to force the reference to be initially disabled

    • Default False
  6. boolabDeleteWhenAble=true

    CK Wiki Description

    True to force the reference to be deleted as soon as it is no longer persisted by a property or quest and is no longer in the loaded area.

    • Default True
  7. boolabAttach=false

    CK Wiki Description

    True to cause the newly created reference to be attached to the calling one as if its Attach Ref had been set in the editor

    • Default False

Examples

; Place a bird in a tree at a critter marker
ObjectReference newbird = TreeRef.PlaceAtNode("CritterPerch00", BirdBase)

Auto-Generated Example

string myString__asNodeName
Form myForm__akFormToPlace
int myInt__aiCount
bool myBool__abForcePersist
bool myBool__abInitiallyDisabled
bool myBool__abDeleteWhenAble
bool myBool__abAttach

ObjectReference returnedValue = myObjectReference__toCallFunctionOn.PlaceAtNode(myString__asNodeName, myForm__akFormToPlace, myInt__aiCount, myBool__abForcePersist, myBool__abInitiallyDisabled, myBool__abDeleteWhenAble, myBool__abAttach)

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.