GetObjectComponentCount - MiscObject

From the Fallout4 CreationKit Wiki
Revision as of 12:37, 13 May 2016 by imported>Hannibalektr (Created page with "Category:Scripting Category:Papyrus '''Member of:''' MiscObject Script Returns the number of the given component this form has. == Syntax == <source lang="papyru...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: MiscObject Script

Returns the number of the given component this form has.

Syntax

int Function GetObjectComponentCount( Component akComponent ) native

Parameters

  • akComponent - The component you are interested in.

Return Value

The number of the given component this form has.

Examples

if item.GetObjectComponentCount( Screws ) > 1
  Debug.Trace("This item has too many screws.  The game is now unbalanced.")
endIf

See Also