GetBaseObject - ObjectReference

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: ObjectReference Script

Obtains the base object for this reference.

Syntax

Form Function GetBaseObject() native

Parameters

None.

Return Value

The base object for this reference.

Examples

; Obtains the base weapon for this reference
Weapon sword = SwordOfDoomProperty.GetBaseObject() as Weapon

Notes

If this function is called on a leveled Actor it will return the base object shown in the editor (the leveled actor base) and it will NOT return the temporary base object of the actor in the world. To obtain that base object, use GetLeveledActorBase on the actor instead.

See Also