IsFormInstance

From GECK
Jump to: navigation, search


A function added by the pp NVSE Plugin.

Description

Returns true if the reference or baseform is derived from a form instance.

Syntax

[help]
(bool) IsFormInstance object:ref

Example

ref r9mmInstance = CreateFormInstance WeapNV9mmPistol "MyInstanceKey"
if IsFormInstance r9mmInstance
   ;This will return true.
endif

Notes

  • You can not create instances of instances. Only instances of existing baseforms.
  • You can have multiple instances pointing to the same parent.
  • It's advised to use GetWeaponBase for comparing weapons rather that GetBaseObject.

See Also