Hello,
I am sorry, for this trivial script question, but I am really lost.
I have a hotspot (Locker) and if player interacts with the Locker, he will acquire an item (Pills).
My question is:
How do I code that if the player ever clicked on the hotspot, he will not be able to take pills twice.
Because I tried to code classic "DoOnceOnly" script so if player HasInventory(iPill), then he will say "I already took them".
The problem is, that if player ever gets rid of the Pills, suddenly, player is able to take the Pills from the Locker again.
Any ideas?
I am sorry, for this trivial script question, but I am really lost.
I have a hotspot (Locker) and if player interacts with the Locker, he will acquire an item (Pills).
My question is:
How do I code that if the player ever clicked on the hotspot, he will not be able to take pills twice.
Because I tried to code classic "DoOnceOnly" script so if player HasInventory(iPill), then he will say "I already took them".
The problem is, that if player ever gets rid of the Pills, suddenly, player is able to take the Pills from the Locker again.
Any ideas?