CompareNames

From GECK
Jump to: navigation, search


A function added by the Fallout Script Extender.

Description

Compares a form's FullName to another form's FullName.

firstForm can be provided as either a reference, or a baseForm, depending on where it is supplied. In either case, the function uses firstForm's BaseForm to get its name.

If firstForm and secondForm's names match completely, returns 0. Else, returns either 1 or -1, depending on which form had the longest name. If the firstForm is the longest, will return -1, and if secondForm is longest, will return 1.

Syntax

[help]
(float) [firstForm:reference].CompareNames secondForm:baseForm firstForm:baseForm 

See Also