EquipItemData
From GECK
A function added by the Lutana NVSE plugin, now part of the JIP NVSE Plugin.
Contents
Description
Similar to EquipItem, but allows specification of health and weapon mod flags. Also triggers OnEquip events.
- You can pass -1 as the itemHealth argument to ignore it when matching weapon mod flags.
Syntax
reference.EquipItemData item:form itemHealth:float modFlags:int noUnequip:0/1 noMessage:0/1
Example
rActorRef.EquipItemData Weap10mmSubmachineGun -1 5
See Also
- GetInvRefsForItem (to check each inventory ref for an Item).
- GetItemRefCurrentHealth (goes well with the above).
- EquipItemAlt / UnequipItemAlt
- RemoveMeIRAlt / RemoveMeIR