GetDefaultObject - DefaultObject

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

F4SE Member of: DefaultObject Script
Requires F4SE version 0.4.2 or higher.

Gets the Form for this default object by editor ID.

Syntax[edit | edit source]

Form Function GetDefaultObject(string editorId) Global Native

Parameters[edit | edit source]

  • editorId: The editor id of a default object.

Return Value[edit | edit source]

The Form for the default object.

Examples[edit | edit source]

string editorID = "IsSleepFurniture_DO"
Form object = DefaultObject.GetDefaultObject(editorID)
Debug.Trace("The default object with editor ID " + editorID + " has the form object " + object)

Notes[edit | edit source]

None

See Also[edit | edit source]