Difference between revisions of "ConstructibleComponent Struct - ConstructibleObject"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>Qazaaq
(added required f4se version)
(Struct uses Form instead of Component to handle both components and things that can't be components, like weapons.)
Line 7: Line 7:
<source lang="papyrus">
<source lang="papyrus">
Struct ConstructibleComponent
Struct ConstructibleComponent
Component Object
Form Object
int Count
int Count
EndStruct
EndStruct
Line 13: Line 13:


== Members ==
== Members ==
*Object: The required [[Component]] for a [[Constructible Object]].
*Object: The required [[Component]] for a [[Constructible Object]]. Is a [[Form]] to handle items that aren't Components.
*Count: The amount of the component that is required.
*Count: The amount of the component that is required.


Line 30: Line 30:
* [[Constructible Object]]
* [[Constructible Object]]
* [[Component]]
* [[Component]]
* [[Form]]
* [[GetConstructibleComponents - ConstructibleObject]]
* [[GetConstructibleComponents - ConstructibleObject]]
* [[SetConstructibleComponents - ConstructibleObject]]
* [[SetConstructibleComponents - ConstructibleObject]]

Revision as of 22:44, 15 July 2024

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

A structure that holds information about a constructible object's required item list.

Syntax

Struct ConstructibleComponent
	Form Object
	int Count
EndStruct

Members


Examples

ConstructibleObject:ConstructibleComponent constructibleComponent = new ConstructibleObject:ConstructibleComponent
constructibleComponent.Object = c_Gold
constructibleComponent.Count = 100

Debug.Trace("Object: " + constructibleComponent.Object)
Debug.Trace("Count: " + constructibleComponent.Count)

See Also