Adding Items from Array List

Post » Mon Feb 11, 2013 11:21 pm

I'm pretty new to arrays and I'm wondering how you would add an item from an array list to the player. This is the code that I have so far but it doesn't add anything:
Armor[] Property MyArmorLIst AutoGlobalVariable Property AIndexValue AutoEvent OnInit()Armor NewArmor = MyArmorList[AIndexValue.GetValue()]Game.GetPlayer().AddItem(NewArmor, 1)EndEvent

Doens't return any errors, but it doesn't do anything either, any ideas?
User avatar
Sabrina Steige
 
Posts: 3396
Joined: Mon Aug 20, 2007 9:51 pm

Return to V - Skyrim