Background for Fallout 4
Member of the FormList script
boolfunctionHasForm(FormakForm)Native

Description

Wiki Description

Returns whether the passed-in form exists in this form list.

Documentation Comment

Queries the form list to see if it contains the passed in form


Caveats

CK Wiki - Notes

Form lists inside form lists will not be checked for items. If you ask a form list if it has a form and that form is inside a nested form list this function will return false.


Parameters

FormakForm

CK Wiki Description

The form to look for in this form list.


Examples

; Does the "fireball" spell exist in the "firespell" list?
if fireSpell.HasForm(Fireball)
  Debug.Trace("Fireball is a fire spell!")
endIf

Auto-Generated Example

Form myForm__akForm

bool returnedValue = myFormList__toCallFunctionOn.HasForm(myForm__akForm)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.