Jump to content

OnItemAdded Not Triggering


Recommended Posts

Scriptname tilemodaliasscriptagain extends ReferenceAlias

TileModTrackedStatsQS Property TileModStatsEvent Auto

FormList Property TileModFL Auto Const

Event OnInit()
	AddInventoryEventFilter(TileModFL)
EndEvent


Event OnItemAdded(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akSourceContainer)
	TileModStatsEvent.UpdateWidget()
	Debug.Notification("item added")
EndEvent

this is attached to the player in an alias, the properties are filled and the items are in the formlist.

 

not sure why this isn't firing, even the debug notif doesnt show.

 

the alias is uniqueactor > player

Link to comment
Share on other sites

Probably becuase OnInit() does not fire for quest aliases. That would be OnAliasInit() like:



Event OnAliasInit()
Debug.Trace("SKK_GSSPlayerAliasScript.OnAliasInit")
ScrapPlayerJunkFilter()
EndEvent

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...