Difference between revisions of "SetFavorites - FavoritesManager"

Jump to navigation Jump to search
added script example
imported>Qazaaq
(added f4se member)
 
imported>Qazaaq
(added script example)
Line 14: Line 14:
== Examples ==
== Examples ==
<source lang="papyrus">
<source lang="papyrus">
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
</source>
</source>


Anonymous user

Navigation menu