Background for Fallout 4
Member of the FavoritesManager script
voidfunctionSetFavorites(Form[]favorites)NativeGlobal

Description

Wiki Description

Sets all 12 favorites which may contain none entries.

Documentation Comment

Sets all 12 favorites, may contain None entries


Caveats

CK Wiki - Notes

None


Parameters

Form[]favorites

CK Wiki Description

** An array of 12 Form to be favorited. A none entry will clear the favorited slot.


Examples

Weapon Property PipeGun Auto Const Mandatory
Armor Property Armor_MiningHelmet Auto Const Mandatory
Potion Property Stimpak Auto Const Mandatory

Event OnInit()
    {favorite 3 forms}
    Form[] favorites = new Form[12]
    favorites[0] = PipeGun
    favorites[3] = Armor_MiningHelmet
    favorites[7] = Stimpak
    FavoritesManager.SetFavorites(favorites)
    Debug.Trace("Favorites manager has favorited " + favorites.Length + " items.")
EndEvent

Auto-Generated Example

Form[] myFormArray__favorites

FavoritesManager.SetFavorites(myFormArray__favorites)

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.