Jump to content

Need help with scripts for adding items to inventory after using consumable?


Recommended Posts

One thing I notice with that script is that even if an NPC consumes the packed lunch, it will add the Misc items to the player inventory. You may want to add to the script so that it checks to see if the player is the one that consumed it.

Yes you are right, should be this:

MiscObject property PlascticFork Auto
MiscObject property PlascticKnife Auto
MiscObject property VTecLunchbox Auto
Bool property isSilent Auto

Event OnEffectStart(Actor akTarget, Actor akCaster)
	akTarget.AddItem(PlascticFork, 1, isSilent)
	akTarget.AddItem(PlascticKnife, 1, isSilent)
	akTarget.AddItem(VTecLunchbox, 1, isSilent)
endEvent
Link to comment
Share on other sites

  • Recently Browsing   0 members

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