SetOnInstanceReconstruct
From GECK
A function added by the pp NVSE Plugin.
Contents
Description
This runs every time an instance is reconstructed.
Syntax
(none) SetOnInstanceReconstruct priority:string script:ref filter:string
Example
ref r9mmInstance = CreateFormInstance WeapNV9mmPistol "MyInstances" SetOnInstanceReconstruct "0" MyUDF "MyInstanceKey"
MyUDF will run every time an instance with the key "MyInstances" is reconstructed.
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.