MarkItemAsFavorite - Actor

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: Actor Script

Mark the given item as a favorite.

Syntax[edit | edit source]

Function MarkItemAsFavorite(Form akItem, int aiSlot=-1) native

Parameters[edit | edit source]

  • akItem: The item the actor should favorite.
  • aiSlot: The slot to favorite the item in. If -1, uses the first open slot or slot #1 if all slots are filled.
    • Default: -1
    • Valid values: -1, 1-12

Return Value[edit | edit source]

None.

Examples[edit | edit source]

; Marks the tutu as the player's most favorite tutu.
Game.GetPlayer().MarkItemAsFavorite(TutuProperty)

See Also[edit | edit source]