SetFavorites - FavoritesManager
Revision as of 09:12, 22 April 2018 by imported>Qazaaq (Scrivener07 moved page SetFavorites - FavoritesManager to F4SE:SetFavorites - FavoritesManager)
F4SE Member of: FavoritesManager Script
Requires F4SE version 0.6.5 or higher.
Sets all 12 favorites which may contain none entries.
Syntax
Function SetFavorites(Form[] favorites) Global Native
Parameters
- favorites: An array of 12 Forms 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
Notes
None