Difference between revisions of "MiscObject Script"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>Qazaaq
(fixed link)
imported>Qazaaq
(Added some description details.)
Line 15: Line 15:
== F4SE Structs ==
== F4SE Structs ==
*Struct [[MiscComponent Struct - MiscObject|MiscComponent]]
*Struct [[MiscComponent Struct - MiscObject|MiscComponent]]
**A structure that holds information about a component of the MiscObject.
A structure that holds information about the ''Component Data'' of a MiscItem.


== Global Functions ==
== Global Functions ==
Line 22: Line 22:
== Member Functions ==
== Member Functions ==
*int Function [[GetObjectComponentCount - MiscObject|GetObjectComponentCount]](Component akComponent)
*int Function [[GetObjectComponentCount - MiscObject|GetObjectComponentCount]](Component akComponent)
**Returns the number of the given component this form has.
**Gets the quantity of the given component for this MiscItem.


== F4SE Member Functions ==
== F4SE Member Functions ==
*MiscComponent[] Function [[GetMiscComponents - MiscObject|GetMiscComponents]]()
*MiscComponent[] Function [[GetMiscComponents - MiscObject|GetMiscComponents]]()
**Returns the MiscComponents this MiscObject has.
**Gets the ''Component Data'' for this MiscItem as an array of MiscComponent structures.


*Function [[SetMiscComponents - MiscObject|SetMiscComponents]](MiscComponent[] akComponents)
*Function [[SetMiscComponents - MiscObject|SetMiscComponents]](MiscComponent[] akComponents)
**Sets the MiscComponents this MiscObject has.
**Sets the ''Component Data'' for this MiscItem using an array of MiscComponent structures.


== Events ==
== Events ==

Revision as of 18:20, 2 December 2018

Extends: Form Script
Editor: MiscItem

Script for the manipulation of miscellaneous base objects.

Definition

ScriptName MiscObject extends Form Native Hidden

Properties

None

F4SE Structs

A structure that holds information about the Component Data of a MiscItem.

Global Functions

None

Member Functions

  • int Function GetObjectComponentCount(Component akComponent)
    • Gets the quantity of the given component for this MiscItem.

F4SE Member Functions

  • MiscComponent[] Function GetMiscComponents()
    • Gets the Component Data for this MiscItem as an array of MiscComponent structures.
  • Function SetMiscComponents(MiscComponent[] akComponents)
    • Sets the Component Data for this MiscItem using an array of MiscComponent structures.

Events

None

See Also