Difference between revisions of "AddItemHealthPercent"

Jump to navigation Jump to search
80 bytes added ,  17:16, 2 March 2009
Updated to use Function Template
imported>MadCat221
imported>Cipscis
(Updated to use Function Template)
Line 1: Line 1:
=='''Description'''==
{{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


'''AddItemHealthPercent''' Adds a damaged item to the specified container.
The player has 1 Hunting Rifle added to their inventory at 85% health.
 
}}
=='''Syntax'''==
 
[''ActorID|ContainerID''.]AddItemHealthPercent ''ItemID, Count, HealthPercent, MessageHiddenFlag''
 
=='''Examples'''==
 
buddyref.additemHealthPercent weapHuntingRifle 1 .85
Buddy has 1 Hunting Rifle added to his inventory at a condition of 85%


=='''Notes'''==
=='''Notes'''==
Line 16: Line 26:


=='''See Also'''==
=='''See Also'''==
[[AddItem]]<br>
[[AddItem]]<br />
[[RemoveItem]]
[[RemoveItem]]
<!--
=='''Reference'''==
None provided.
<!-- [[AddItemHealthPercent_Reference|List of functions that use AddItemHealthPercent]]  (wiki) -->


[[Category:Functions]]
[[Category:Functions]]
Anonymous user

Navigation menu