No reference with OnItemAdded?

Post » Sun Jan 06, 2013 10:49 am

The akItemReference is None in the follow code:

Spoiler

Event OnItemAdded(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akSourceContainer)Notification(akItemReference)EndEvent

Why is that? I picked up a potion of the ground, shouldn't I have a ObjectReference for the potion?
User avatar
Lucie H
 
Posts: 3276
Joined: Tue Mar 13, 2007 11:46 pm

Post » Sun Jan 06, 2013 3:26 pm

I think it is failing because the only items that remain as object references inside a container (in this case the player) are quest objects and items set to be persistent. So you need to use the akBaseItem in most cases.
User avatar
jasminε
 
Posts: 3511
Joined: Mon Jan 29, 2007 4:12 am


Return to V - Skyrim