SortFormsByType

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

A function added by the Lutana NVSE plugin.

Description

Returns an array of forms sorted by an array of type codes.

JIP NVSE Plugin v40 merged Lutana NVSE plugin v19. As of JIPv40, This function's syntax was changed from Lutana v19, requiring that you pass the arrays via their IDs (set to integers) if you use the script compiler override (CO).

Syntax

[help]
(array) SortFormsByType formsArrayID:array typesArrayID:array

Example

array_var arrForms
array_var arrTypes
array_var arrSorted
let arrSorted := SortFormsByType arrForms, arrTypes

Example with CO

array_var arrForms
array_var arrTypes
array_var arrSorted
int iFormsArrayID
int iTypesArrayID
...
set iFormsArrayID to arrForms
set iTypesArrayID to arrTypes
let arrSorted := SortFormsByType iFormsArrayID iTypesArrayID


Old Syntax (Lutana standalone)

(arrSorted) SortFormsByType arrForms:array arrTypes:array

See Also