Difference between revisions of "AddItemHealthPercent"
Jump to navigation
Jump to search
imported>MadCat221 (→Syntax) |
imported>Cipscis (Updated to use Function Template) |
||
Line 1: | Line 1: | ||
== | {{Function | ||
|origin = GECK1 | |||
|summary = [[AddItemHealthPercent]] adds an item to a container at a specified health percentage. | |||
|referenceType = Actor|Container | |||
|arguments = {{FunctionArgument | |||
|Name = Item | |||
|Type = ObjectID | |||
}}{{FunctionArgument | |||
|Name = Count | |||
|Type = int | |||
}}{{FunctionArgument | |||
|Name = HealthPercent | |||
|Type = float | |||
}}{{FunctionArgument | |||
|Name = MessageHiddenFlag | |||
|Type = int | |||
|Optional = y | |||
}} | |||
|example = player.AddItemHealthPercent WeapHuntingRifle 1 0.85 | |||
The player has 1 Hunting Rifle added to their inventory at 85% health. | |||
}} | |||
=='''Notes'''== | =='''Notes'''== | ||
Line 16: | Line 26: | ||
=='''See Also'''== | =='''See Also'''== | ||
[[AddItem]]<br> | [[AddItem]]<br /> | ||
[[RemoveItem]] | [[RemoveItem]] | ||
[[Category:Functions]] | [[Category:Functions]] |
Revision as of 17:16, 2 March 2009
< [[::Category:Functions|Category:Functions]]
A function included in the GECK version 1.1.0.36.
Description
AddItemHealthPercent adds an item to a container at a specified health percentage.
Syntax
Actor.AddItemHealthPercent Item:ObjectID Count:int HealthPercent:float MessageHiddenFlag:int
Example
player.AddItemHealthPercent WeapHuntingRifle 1 0.85
The player has 1 Hunting Rifle added to their inventory at 85% health.
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.