Difference between revisions of "ListGetCount"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Geckbot
m (Robot: Automated text replacement (-\[\[Category:(.*?)Functions \(GECK 1.0\)\]\] +Category:\1Functions (FOSE)))
imported>Odessa
(Tidied + added example/see also)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function
{{Function
  |origin = FOSE1
  |origin = FOSE1
  |summary = Returns the size (number of forms) of a [[FormList]].
  |summary = Returns the count of items in the specified form list.
  |name = ListGetCount
  |name = ListGetCount
|returnVal = size
  |returnType = Count:int
  |returnType = int
  |arguments =  
  |arguments =
   {{FunctionArgument
   {{FunctionArgument
   |Name = FormListID
   |Name = Target
   |Type = ref
   |Type = formlist
   }}
   }}
|example = ListGetCount myFormList
}}
}}
==Example==
<pre>
int iCount


==Notes==
set iCount to ListGetCount AmmoList10mm ; * 3
*Useful when you need to loop through a [[FormList]]. See [[Scripting Tutorial: Working with FormLists]].
</pre>
 
==See Also==
==See Also==
*[[ListAddForm]]
*[[ListGetNthForm]]
*[[ListAddReference]]
*[[ListRemoveForm]]
*[[ListRemoveNthForm]]
*[[ListRemoveNthForm]]
*[[ListReplaceForm]]
*[[Ar_Size]] (equivalent for [[Array Variable|arrays]])
*[[ListReplaceNthForm]]
[[Category:Functions_(FOSE)]] [[Category:List_Functions]]
*[[ListGetNthForm]]
*[[ListGetFormIndex]]
*[[AddFormToFormList]]
*[[IsInList]]
*[[IsWeaponInList]]
 
[[Category:List Functions]]
[[Category:List Functions (FOSE)]]
[[Category:Functions]]
[[Category:Functions (FOSE)]]

Latest revision as of 05:08, 24 March 2015

< [[::Category:Functions|Category:Functions]]

A function added by the Fallout Script Extender.

Description

Returns the count of items in the specified form list.

Syntax

[help]
(Count:int) ListGetCount Target:formlist

Example

int iCount

set iCount to ListGetCount AmmoList10mm ; * 3

See Also