Talk:EquipItem - Actor

From the CreationKit Wiki
Jump to navigation Jump to search

EquipItem and custom enchanted items[edit source]

There seems to be a bug. Equipping custom enchanted items will not apply their magic effects. This stands for both papyrus and console version of the function. Mitchalek 19:13, 22 March 2012 (EDT)

I have verified that this bug is still present in Skyrim 1.7.7.0.6. Chesko (talk) 19:39, 8 October 2012 (EDT)

The bug remains present in the Skyrim 1.9.32.0 series. If there are any workarounds, they should be linked from this page. djarb (talk) 5:15, 30 May 2014 (PDT)

Bullet 2[edit source]

How can the example given in Notes - Bullet point 2 work as described? The True flag is for preventing the item to be unequipped, not "giving it to them unless they already have one." --Chesko

The true-flag has nothing to do with it. The note just says that you will be given the item automatically if you don't have it and this function is called. You can just remove the true-flag if it doesn't seem to be clear at first view. --Kahmul 18:10, 23 June 2012 (EDT)

Equipping Dual Weapons[edit source]

Not able to equip the other hand with a weapon. If only it had a option flag allowing you set which hand (Left/Right) you wish to equip your weapon on--PROXiCiDE (talk) 06:50, 8 December 2012 (EST)

Not recognizing the command[edit source]

I'm working on a little nostalgic mod, and part of it requires giving an actor a pair of shoes. I have added a line to give him the shoes (and it compiles perfectly fine)

Alias_basksinthesunref.GetReference().Additem (ArmorIronBoots, 1)

But when I try to get him to equip it with the following:

Alias_basksinthesunref.GetReference().Equipitem (ArmorIronBoots, true)

I get this as an error in the compiler: "Equipitem is not a function or does not exist"

Does anyone know what's wrong or how to fix it? Grasscid (talk) 2013-03-17T17:15:08 (EDT)

Answering this question in the event that others would like to know. GetReference() returns an ObjectReference but EquipItem is expecting an Actor. The reference needs to be cast as an Actor.
Example:
(Alias_basksinthesunref.GetReference() as Actor).EquipItem(ArmorIronBoots, true)
IsharaMeradin (talk) 2014-05-07T18:28:49 (EDT)

Equipping the reference of a quest alias[edit source]

I had a problem using this script to equip a quest item in the player's inventory that was created by the quest (not a forced reference) by passing it the reference of that alias. (Game.GetPlayer().EquipItem(AliasProperty.GetReference())) The Papyrus log said that the ObjectReference "has no 3d and cannot be equipped." It worked when I passed the base object as an argument, instead. (Game.GetPlayer().EquipItem(AliasProperty.GetReference().GetBaseObject()))