AddItemHealthPercentOwner

From GECK
Jump to: navigation, search


A function added by the New Vegas Script Extender.

Description

Similar to AddItemHealthPercent, but allows ownership information to be specified.

Does nothing if the item cannot be given health (like Caps). Use AddItemOwnership for that instead.

Syntax

[help]
Actor/Container.AddItemHealthPercentOwner Item:ObjectID Count:int HealthPercent:float Owner:NPC/Faction Rank:int

Example

SomeChest.AddItemHealthPercentOwner WeapHuntingRifle, 1, 0.35, BoomerFaction, 1 

See Also