. . . Posted September 15, 2021 Share Posted September 15, 2021 (edited) Is there a way I can somehow add data in container component in its pushedevent of itemlose and itemget to see what entity took or gave the item? Edited September 15, 2021 by . . . Link to comment Share on other sites More sharing options...
penguin0616 Posted September 15, 2021 Share Posted September 15, 2021 I believe this is relevant for your situation. Perhaps something like this. local function OnItemGet(inst, data) local player = inst.components.container.currentuser if data and data.item then print(player, "put", data.item, "in a container.") end end inst:ListenForEvent("itemget", OnItemGet) 1 Link to comment Share on other sites More sharing options...
. . . Posted September 15, 2021 Author Share Posted September 15, 2021 My brain's just having constant 404 errors when I code new stuff even when I should know how to go about them lol and thanks a lot it worked perfectly. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now