This object is in archive! 
[MODAPI] Add event to IMyPlayer to invoke when consume a item
Not Enough Votes
I'm developing a mod, and I miss an event to be called when a player consumes an item, in the IMyPlayer class containing the definition of the consumable used.
This will allow a lot of iterations with the player with consumables.
You can't vote. Please authorize!
You can't vote. Please authorize!
You can't vote. Please authorize!
You can't vote. Please authorize!
You can't vote. Please authorize!
You can't vote. Please authorize!
You can't vote. Please authorize!
You can't vote. Please authorize!
I like this feedback
I managed to find a way to do it.
If anyone else has this problem, here's how I solved it.
Inventory = player.Character?.GetInventory() as MyInventoryBase;
Inventory.ContentsRemoved += Inventory_ContentsRemoved;
I managed to find a way to do it.
If anyone else has this problem, here's how I solved it.
Inventory = player.Character?.GetInventory() as MyInventoryBase;
Inventory.ContentsRemoved += Inventory_ContentsRemoved;
This seems to've been added, MyAPIGateway.Players.ItemConsumed
This seems to've been added, MyAPIGateway.Players.ItemConsumed
Replies have been locked on this page!