Papyrus: Converting Form property to Armor property

Post » Tue Feb 12, 2013 6:22 pm

Hello. I've got the following problem:
I have an array of Form[] in my script. This array contains actually armors. When I cast the content of one field as string it looks like this: [Form < (000ABC12)>]

If I try to add one field directly to an actors inventory I get the following error: Cannot add a null type to a container.

I understand it has to be cast as armor. However, when I do that every field of my array becomes empty and there is nothing to add to the inventory. Can anybody help me? Thanks.
User avatar
Austin Suggs
 
Posts: 3358
Joined: Sun Oct 07, 2007 5:35 pm

Return to V - Skyrim