Difference between revisions of "GetActorBase - Actor"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Rhavlovick
m (1 revision: Clobber re-import by Henning)
 
imported>Lisselli
m (→‎Notes: It's just GetBaseObject() cast to Actorbase.)
 
Line 25: Line 25:


== Notes ==
== Notes ==
If you call this on a leveled [[Actor Script|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 - Actor|GetLeveledActorBase]] instead.
*If you call this on a leveled [[Actor Script|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 - Actor|GetLeveledActorBase]] instead.
 
* This function is actually GetBaseObject() as Actorbase, and is faster than this function.


== See Also ==
== See Also ==

Latest revision as of 01:04, 11 August 2017

Member of: Actor Script

Gets the ActorBase of the actor.

Syntax[edit | edit source]

ActorBase Function GetActorBase()

Parameters[edit | edit source]

  • None.

Return Value[edit | edit source]

The ActorBase for this actor

Examples[edit | edit source]

; 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[edit | edit source]

  • 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 Also[edit | edit source]