GetActorBase - Actor

From the CreationKit Wiki
Revision as of 15:26, 18 October 2011 by imported>Rhavlovick (1 revision: Clobber re-import by Henning)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: Actor Script

Gets the ActorBase of the actor.

Syntax

ActorBase Function GetActorBase()

Parameters

  • None.

Return Value

The ActorBase for this actor

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

Notes

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.

See Also