GetLeveledActorBase - Actor

From the Fallout4 CreationKit Wiki
Revision as of 10:50, 13 October 2010 by imported>Plplecuyer (Created page with 'Category:Scripting Category:Papyrus '''Member of:''' Actor Script Gets the temporary ActorBase of a leveled Actor - the one gen…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: Actor Script

Gets the temporary ActorBase of a leveled Actor - the one generated by the game from the leveled list. If the actor is not leveled, it will simply return the base object shown in the editor.

Syntax[edit | edit source]

ActorBase Function GetLeveledActorBase() native

Parameters[edit | edit source]

  • None.

Return Value[edit | edit source]

Returns the ActorBase that was created for the leveled actor from the leveled list. If called on a non-leveled actor, it will just return the actor's base object.

Examples[edit | edit source]

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

See Also[edit | edit source]