BaseAddItemHealth
From GECK
A function added by the Lutana NVSE plugin, now part of the JIP NVSE Plugin.
Contents
Description
Adds an item with the specified health percentage (0.0 - 1.0) to a form's base container. (NEEDS TESTING)
Syntax
[container:reference].BaseAddItemHealth itemToAdd:form count:int health:float baseContainerForm:baseform
Example
BaseAddItemHealth Weap10mmPistol 1 .5 MailboxDestroyedUnarmed
rRef.BaseAddItemHealth Weap10mmPistol 1 .5
Notes
- In previous versions, it appears to add the item with full health/condition regardless of the float parameter. As of JIP LN 56.78, this seems to have been fixed.
- This function will work if the itemToAdd is a leveled list, although the health of all the items inside that list will be overwritten by the health argument.
- While the float parameter will take an int, the call will fail to work silently. Use a float that is less than or equal to 0.99.