How do I unequip an item after the player uses it?

Started by doctorhibert, Fri 24/02/2017 19:12:49

Previous topic - Next topic

doctorhibert

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

dayowlron

#1
Correct me if I am wrong but something like:
player.ActiveInventory=null;
Pro is the opposite of Con                       Kids of today are so much different
This fact can clearly be seen,                  Don't you know?
If progress means to move forward         Just ask them where they are from
Then what does congress mean?             And they tell you where you can go.  --Nipsey Russell

SMF spam blocked by CleanTalk