Difference between revisions of "AddItemHealthPercent"

Jump to navigation Jump to search
19 bytes added ,  23:49, 12 January 2011
no edit summary
imported>Geckbot
m (Robot: Automated text replacement (-\[\[Category:(.*?)\(GECK 1.0\)\]\] +Category:\1(GECK 1.1)))
imported>Ez0n3
Line 1: Line 1:
{{Function
{{Function
|origin = GECK1
|origin = GECK1
|summary = [[AddItemHealthPercent]] adds an item to a container at a specified health percentage.
|summary = [[AddItemHealthPercent]] adds an item to a container at a specified health percentage.
|referenceType = Actor|Container
|name = AddItemHealthPercent
|arguments = {{FunctionArgument
|referenceType = Actor|Container
|arguments = {{FunctionArgument
     |Name = Item
     |Name = Item
     |Type = ObjectID
     |Type = ObjectID
Line 17: Line 18:
     |Optional = y
     |Optional = y
   }}
   }}
|example = player.AddItemHealthPercent WeapHuntingRifle 1 0.85
|example = player.AddItemHealthPercent WeapHuntingRifle 1 0.85


The player has 1 Hunting Rifle added to their inventory at 85% health.
The player has 1 Hunting Rifle added to their inventory at 85% health.
}}
}}


=='''Notes'''==
==Notes==
*When using this to create an item from a leveled list, note that the specified health percent overrides the health percentage set by the leveled list.
*When using this to create an item from a leveled list, note that the specified health percent overrides the health percentage set by the leveled list.
*This function is new in the GECK, and was not available in the TES4 Construction Set.
*This function is new in the GECK, and was not available in the TES4 Construction Set.


=='''See Also'''==
==See Also==
[[AddItem]]<br />
*[[AddItem]]
[[RemoveItem]]
*[[RemoveItem]]


[[Category:Functions]]
[[Category:Functions]]
[[Category:Functions (GECK 1.1)]]
[[Category:Functions (GECK 1.1)]]
Anonymous user

Navigation menu