Background for Starfield
Member of the ObjectReference script
ObjectReferencefunctionPlaceAtMe(FormakFormToPlace, intaiCount=1, boolabForcePersist=false, boolabInitiallyDisabled=false, boolabDeleteWhenAble=true, float[]akOffsetValues=NONE, AliasakAliasToFill=NONE, boolabSnapOffsetToNavmesh=true)Native

Description

Wiki Description

Makes X new references of the passed in form, optionally forcing them to persist, and places them at our reference's location, returning the last one it created.

Documentation Comment

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


Caveats

CK Wiki - Notes

If you want to place a leveled actor, you probably want ObjectReference.PlaceActorAtMe(...).


Parameters

  1. FormakFormToPlace

    CK Wiki Description

    The base form to create references of.

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

    CK Wiki Description

    How many references to make at once.

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

    CK Wiki Description

    True to force the created reference to be persistent.

  4. boolabInitiallyDisabled=false

    CK Wiki Description

    True to force the reference to be initially disabled

    • Default False
  5. 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
  6. float[]akOffsetValues=NONE

  7. AliasakAliasToFill=NONE

  8. boolabSnapOffsetToNavmesh=true


Examples

; Place a new box at the target marker
ObjectReference newBox = TargetMarker.PlaceAtMe(BoxBase)
; Place a two new boxes at the target marker
ObjectReference oneOfTheBoxes = TargetMarker.PlaceAtMe(BoxBase, 2)

Auto-Generated Example

Form myForm__akFormToPlace
int myInt__aiCount
bool myBool__abForcePersist
bool myBool__abInitiallyDisabled
bool myBool__abDeleteWhenAble
float[] myFloatArray__akOffsetValues
Alias myAlias__akAliasToFill
bool myBool__abSnapOffsetToNavmesh

ObjectReference returnedValue = myObjectReference__toCallFunctionOn.PlaceAtMe(myForm__akFormToPlace, myInt__aiCount, myBool__abForcePersist, myBool__abInitiallyDisabled, myBool__abDeleteWhenAble, myFloatArray__akOffsetValues, myAlias__akAliasToFill, myBool__abSnapOffsetToNavmesh)

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.