PlaceActorAtMe - ObjectReference

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: ObjectReference Script

Places a new Actor at this object's location.

Syntax[edit | edit source]

Actor Function PlaceActorAtMe(ActorBase akActorToPlace, int aiLevelMod = 4,
                              EncounterZone akZone = None) native

Parameters[edit | edit source]

  • akActorToPlace: The ActorBase to base the new actor on.
  • aiLevelMod: The level modifier to use.
    • Must be one of the following:
      • 0: Easy
      • 1: Medium
      • 2: Hard
      • 3: Boss
      • 4: None
    • Default: 4
  • akZone: The EncounterZone to use when placing the new actor.
    • Default: None

Return Value[edit | edit source]

The new Actor that was just placed.

Examples[edit | edit source]

; Place a new wolf at this location - and have it attack the player
MarkerProperty.PlaceActorAtMe(WolfBaseProperty).StartCombat(Game.GetPlayer())


; Place a new boss bear at this location
MarkerProperty.PlaceActorAtMe(BearBaseProperty, 3)

Notes[edit | edit source]

  • For an unknown reason, sometimes the leveled actor spawned with this function will not be aggressive to the player, as if their faction data is missing.

See Also[edit | edit source]