Left Hand Equipping work around (sort of)

Post » Fri Jan 18, 2013 12:10 pm

I wanted to post this workaround to get items to equip in the left hand. This is in hopes that someone can expand on it to be a better fix. This does not work on items you enchant or improve, which is a severe drawback.

The method needs you to have the item hotkeyed to a vanilla 1-8 hotkey. Then you must pass that set hotkey's keycode to the function along with the item you wish to equip to the left hand.

Spoiler
Function LeftHandEquip(form EquipItem, int VHK)    If player.GetEquippedWeapon(true) != EquipItem        float StartTime = Utility.GetCurrentRealTime()        form prevright = None        int prevrighttype = player.GetEquippedItemType(1)        If player.GetEquippedWeapon() == EquipItem            player.UnEquipItem(EquipItem, false, true)        elseif (prevrighttype > 0 && prevrighttype < 5) || prevrighttype == 8            prevright = player.GetEquippedWeapon()        elseif prevrighttype == 9            prevright = player.GetEquippedSpell(1)        endif        objectreference temp = player.placeatme(EquipItem)        player.additem(temp)        player.EquipItem(temp.getbaseobject(), false, true)        while player.GetEquippedWeapon() != EquipItem && (Utility.GetCurrentRealTime() - StartTime) < 3.0            utility.wait(0.5)        endwhile        input.tapkey(VHK)        If prevright != None            If prevright.gettype() == 22                player.EquipSpell(prevright as Spell, 1)            elseif player.GetItemCount(prevright) > 0                player.EquipItem(prevright, false, true)            endif        endif        player.removeitem(temp)    endifendfunction
User avatar
BrEezy Baby
 
Posts: 3478
Joined: Sun Mar 11, 2007 4:22 am

Return to V - Skyrim