Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: doctorhibert on Fri 24/02/2017 19:12:49

Title: How do I unequip an item after the player uses it?
Post by: doctorhibert on Fri 24/02/2017 19:12:49
So after the player uses an item on a hotspot I want the item to go back into the inventory, not for it to still be selected as usual. How do I do this? player.activeinventory is the item the player has in hand, but I don't know how to make the activeinventory none.

I'm using the BASS template, by the way
Title: Re: How do I unequip an item after the player uses it?
Post by: dayowlron on Fri 24/02/2017 19:35:19
Correct me if I am wrong but something like:
player.ActiveInventory=null;