PlaceActorAtMe - ObjectReference

Revision as of 02:12, 26 August 2016 by imported>Goggle (The normally aggressive actors spawned with this appear to sometimes have no faction attached to them and wont attack the player unless they are attacked.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: ObjectReference Script

Places a new Actor at this object's location.

SyntaxEdit

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

ParametersEdit

  • 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 ValueEdit

The new Actor that was just placed.

ExamplesEdit

; 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)

NotesEdit

  • 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 AlsoEdit