Unequip then Equip.. Please help me

Post » Thu Jun 21, 2012 8:52 am

I want my character unequip everything (armor, weapon, spell...etc) Then, after a while, equip all back.

The following is my code:


Armor PlayerArmor = Game.GetPlayer().GetEquippedShield()
Shout PlayerShout = Game.GetPlayer().GetEquippedShout()
Spell PlayerSpellL = Game.GetPlayer().GetEquippedSpell(0)
Spell PlayerSpellR = Game.GetPlayer().GetEquippedSpell(1)
Weapon PlayerWeaponR = Game.GetPlayer().GetEquippedWeapon()
Weapon PlayerWeaponL = Game.GetPlayer().GetEquippedWeapon(false)


Game.GetPlayer().UnequipAll()
Game.GetPlayer().UnequipSpell(Game.GetPlayer().GetEquippedSpell(0), 0)
Game.GetPlayer().UnequipSpell(Game.GetPlayer().GetEquippedSpell(1), 1)
Game.GetPlayer().UnequipShout(Game.GetPlayer().GetEquippedShout())




Game.GetPlayer().EquipItem(PlayerArmor)
Game.GetPlayer().EquipShout(PlayerShout)
Game.GetPlayer().EquipSpell(PlayerSpellL, 0)
Game.GetPlayer().EquipSpell(PlayerSpellR, 1)
Game.GetPlayer().EquipItem(PlayerWeaponR)

This doesn't work at all... Can somebody help me? Thanks!!
User avatar
Kelli Wolfe
 
Posts: 3440
Joined: Thu Aug 23, 2007 7:09 am

Return to V - Skyrim

cron