Background for Fallout 4
Member of the Actor script
voidfunctionMarkItemAsFavorite(FormakItem, intaiSlot=-1)Native

Description

Wiki Description

Mark the given item as a favorite.

Documentation Comment

Mark the given item as a favorite.


Caveats


Parameters

FormakItem

CK Wiki Description

The item the actor should favorite.

intaiSlot=-1

CK Wiki Description

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

Examples

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

Auto-Generated Example

Form myForm__akItem
int myInt__aiSlot

myActor__toCallFunctionOn.MarkItemAsFavorite(myForm__akItem, myInt__aiSlot)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.