Background for Fallout 4
Member of the Actor script

Description

Wiki Description

Gets the ActorBase of the actor.

Documentation Comment

returns the ActorBase


Caveats

CK Wiki - Notes

  • For leveled actors (or potentially leveled actors), use Actor.GetLeveledActorBase() instead of Actor.GetActorBase().
  • If you call this on a leveled Actor, it will return the base object shown in the editor - in other words, the leveled base object. You will not get the base object for the actor in the world, and any subsequent calls on that ActorBase may produce unexpected or undefined results.
    • For example, calling <Actor>.GetActorBase().GetRace() on a leveled actor returns an undefined result. In practice, it ends up being the first race the game knows about-- a Fox in Skyrim, Valentine's race in Fallout 4, etc., no matter what object you called it on. This is almost certainly not what you want.

Examples

; Get the sex of an actor by using GetActorBase() so you can call the GetSex() function
if myActorProperty.GetActorBase().GetSex() == 1
    ;do something
endif

Auto-Generated Example

ActorBase returnedValue = myActor__toCallFunctionOn.GetActorBase()

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.