GetActorBase - Actor

Member of: Actor Script

Gets the ActorBase of the actor.

SyntaxEdit

ActorBase Function GetActorBase()

ParametersEdit

  • None.

Return ValueEdit

The ActorBase for this actor

ExamplesEdit

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

NotesEdit

  • 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. In order to obtain that base object, use GetLeveledActorBase instead.
  • This function is actually GetBaseObject() as Actorbase, and is faster than this function.

See AlsoEdit