Difference between revisions of "EquipItem - Actor"

51 bytes added ,  22:00, 19 February 2021
imported>Icecreamassassin
imported>Thor
 
Line 39: Line 39:
<source lang="papyrus">Game.GetPlayer().EquipItem((Game.GetForm(0x00032DB7) As ObjectReference).GetBaseObject())</source>
<source lang="papyrus">Game.GetPlayer().EquipItem((Game.GetForm(0x00032DB7) As ObjectReference).GetBaseObject())</source>
*Armor equipped while in [[OpenInventory - Actor|OpenInventory]] or pick-pocketing dialogues will not be visible on the actor until the dialogue is ended. Calling the SKSE function [[QueueNiNodeUpdate - Actor|QueueNiNodeUpdate]] straight after calling EquipItem can force the actor to draw the new equipment immediately.
*Armor equipped while in [[OpenInventory - Actor|OpenInventory]] or pick-pocketing dialogues will not be visible on the actor until the dialogue is ended. Calling the SKSE function [[QueueNiNodeUpdate - Actor|QueueNiNodeUpdate]] straight after calling EquipItem can force the actor to draw the new equipment immediately.
*The abPreventRemoval flag does not prevent removal by the functions UnEquipAll and RemoveAllItems. It does prevent removal when using EquipItem(OtherItem).
*The abPreventRemoval flag does not prevent removal by the functions UnEquipAll and RemoveAllItems. It does prevent removal when using EquipItem(OtherItem). The player can still move the item to a container!
*EquipItem does not work with [[LeveledItem|leveled items]].
*EquipItem does not work with [[LeveledItem|leveled items]].
*Attempting to Equip or Unequip Quest Alias items via script which are generated via the quest fill to method (as opposed to forced fill of an existing reference) will require you to acquire not only the reference but also the base form (ex: Game.GetPlayer().EquipItem(Alias_Waystone.GetReference().GetBaseObject())
*Attempting to Equip or Unequip Quest Alias items via script which are generated via the quest fill to method (as opposed to forced fill of an existing reference) will require you to acquire not only the reference but also the base form (ex: Game.GetPlayer().EquipItem(Alias_Waystone.GetReference().GetBaseObject())
Anonymous user