GetStaticForm

From GECK
Jump to: navigation, search


A function added by the pp NVSE Plugin.

Description

Similar to GetBaseObject, except it returns the static baseform.

Syntax

[help]
(baseForm) GetStaticForm baseForm:ref

Example

ref r9mmInstance = CreateFormInstance WeapNV9mmPistol "MyInstanceKey"
ref rBaseForm = GetStaticForm r9mmInstance

This will return WeapNV9mmPistol

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