Difference between revisions of "AddItemHealthPercent"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Kkuhlmann
 
imported>Odessa
m (see also nvse versions)
 
(6 intermediate revisions by 5 users not shown)
Line 1: Line 1:
=='''Description'''==
{{Function
|origin = GECK1
|summary = [[AddItemHealthPercent]] adds an item to a container at a specified health percentage.
|name = AddItemHealthPercent
|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'''==
==Notes==
 
[''ActorID|ContainerID''.]AddItemHealthPercent ''ItemID, Count, HealthPercent''
 
=='''Examples'''==
 
buddyref.additemHealthPercent weapHuntingRifle 1 .85
Buddy has 1 Hunting Rifle added to his inventory at a condition of 85%
 
=='''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.


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


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

Latest revision as of 16:35, 16 July 2014

< [[::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

[help]
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.
  • This function is new in the GECK, and was not available in the TES4 Construction Set.

See Also