Background for Fallout 4
Member of the ReferenceAlias script
eventOnItemAdded(FormakBaseItem, intaiItemCount, ObjectReferenceakItemReference, ObjectReferenceakSourceContainer)

Description

Documentation Comment

Event received when an item is added to this object's inventory. If the item is a persistant reference, akItemReference will
point at it - otherwise the parameter will be None


Parameters

  1. FormakBaseItem

  2. intaiItemCount

  3. ObjectReferenceakItemReference

  4. ObjectReferenceakSourceContainer


Examples

Auto-Generated Example

Scriptname MyCoolScript extends ReferenceAlias

event OnItemAdded(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akSourceContainer)
    Debug.trace("Event received - OnItemAdded: akBaseItem = " + akBaseItem + " aiItemCount = " + aiItemCount + " akItemReference = " + akItemReference + " akSourceContainer = " + akSourceContainer)
endEvent
Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.