-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
float weaponrighthandsaved ; these are the private variables
float weaponlefthandsaved
Event OnUnequipped(Actor akActor)
weaponrighthandsaved = Game.GetPlayer().GetItemCount(WeaponRightHandToken)
weaponlefthandsaved = Game.GetPlayer().GetItemCount(WeaponLeftHandToken)
endevent
Event OnEquipped(Actor akActor)
if (Game.GetPlayer().GetEquippedWeapon(false) == EquippedWeapon) ; this weapon now equipped in right hand
Game.GetPlayer().AddItem(weaponrighthandsaved, 1, false) ; does not work keep getting CK complain report
endif
endEvent
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
What I want is to get the variable (marked in bald) to work but I am unsure of the correct function command.




