Difference between revisions of "GetDefaultObject - DefaultObject"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>Qazaaq
(added f4se member)
 
imported>Qazaaq
(added required f4se version)
 
Line 1: Line 1:
'''F4SE Member of:''' [[DefaultObject Script]]
'''F4SE Member of:''' [[DefaultObject Script]]
{{Template:Papyrus:RequiredF4SE|version=0.4.2}}


Gets the Form for this default object by editor ID.
Gets the Form for this default object by editor ID.

Latest revision as of 13:32, 21 January 2018

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]