AttachMod
From GECK
A function added by the pp NVSE Plugin.
Contents
Description
Will attach a mod in a specific slot. Unlike SetWeaponRefModFlags, this can set equipped mods through both the extended system and vanilla system.
Syntax
AttachMod object:ref slot:string itemMod:ref
Example
AttachMod WeapNV9mmPistol "Barrel Device" WeapMod9mmScope