HudBarSetItem

From GECK
Jump to: navigation, search


A function added by the SUP NVSE Plugin.

Description

Sets the Item for specified bar. Item is used for "iDisableWhenItemNotEquipped" trait - Bar will only show up when this item is equipped.

Syntax

[help]
(success:int) HudBarSetItem barName:string ItemBaseForm:form 

Or:

(success:int) HBSetItem barName:string ItemBaseForm:form

Example

HudBarSetItem "BarName" WeapNV9mmPistol

Will hook WeapNV9mmPistol to a Bar.

HudBarSetItem "BarName"

Will remove any item hooked to a bar.

Notes

  • Calling this function with no parameters will remove bar item from the bar.
  • By itself this function will not do anything. You need to set "iDisableWhenItemNotEquipped" to 1 via HudBarSetBarTrait for it to work.

See Also