Difference between revisions of "ConstructibleComponent Struct - ConstructibleObject"
Jump to navigation
Jump to search
imported>Qazaaq (description) |
m (Form ended up pointing to a Glossary.) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
'''F4SE Member of:''' [[ConstructibleObject Script]] | '''F4SE Member of:''' [[ConstructibleObject Script]] | ||
{{Template:Papyrus:RequiredF4SE|version=0.4.2}} | |||
A structure that holds information about a | A structure that holds information about a constructible object's required item list. | ||
== Syntax == | == Syntax == | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
Struct ConstructibleComponent | Struct ConstructibleComponent | ||
Form Object | |||
int Count | int Count | ||
EndStruct | EndStruct | ||
Line 12: | 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 29: | Line 30: | ||
* [[Constructible Object]] | * [[Constructible Object]] | ||
* [[Component]] | * [[Component]] | ||
* [[Form Script]] | |||
* [[GetConstructibleComponents - ConstructibleObject]] | * [[GetConstructibleComponents - ConstructibleObject]] | ||
* [[SetConstructibleComponents - ConstructibleObject]] | * [[SetConstructibleComponents - ConstructibleObject]] |
Latest revision as of 22:46, 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[edit | edit source]
Struct ConstructibleComponent
Form Object
int Count
EndStruct
Members[edit | edit source]
- 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.
Examples[edit | edit source]
ConstructibleObject:ConstructibleComponent constructibleComponent = new ConstructibleObject:ConstructibleComponent
constructibleComponent.Object = c_Gold
constructibleComponent.Count = 100
Debug.Trace("Object: " + constructibleComponent.Object)
Debug.Trace("Count: " + constructibleComponent.Count)