Difference between revisions of "EquipItem"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>SnakeChomp
m (ObjectID is not optional)
imported>Henning
Line 8: Line 8:
*If NoUnequipFlag = 1, actor (including the player) will be unable to unequip the item. Once the item is unequipped with the [[UnequipItem]] function, the item can be equipped and unequipped as normal.
*If NoUnequipFlag = 1, actor (including the player) will be unable to unequip the item. Once the item is unequipped with the [[UnequipItem]] function, the item can be equipped and unequipped as normal.
*If HideEquipMessage = 1, the item equipped message will be hidden from the player.
*If HideEquipMessage = 1, the item equipped message will be hidden from the player.
*In the case that the player has multiples of the specified item, it would appear that the item of lowest condition is the one equipped. If EquipItem is called on the same actor and in the same frame as [[AddItem]] or [[AddItemHealthPercent]], however, the last item added is equipped instead.


[[Category:Functions]]
[[Category:Functions]]
[[Category:Actor Functions]]
[[Category:Actor Functions]]
[[Category:Object Functions]]
[[Category:Object Functions]]

Revision as of 10:41, 16 March 2009

Description

EquipItem forces an actor to equip an item.

Syntax:

[ActorID.]EquipItem ObjectID NoUnequipFlag HideEquipMessage

Parameters

  • If NoUnequipFlag = 1, actor (including the player) will be unable to unequip the item. Once the item is unequipped with the UnequipItem function, the item can be equipped and unequipped as normal.
  • If HideEquipMessage = 1, the item equipped message will be hidden from the player.
  • In the case that the player has multiples of the specified item, it would appear that the item of lowest condition is the one equipped. If EquipItem is called on the same actor and in the same frame as AddItem or AddItemHealthPercent, however, the last item added is equipped instead.