0

How can I get value of current equipped item?

mo D 1 month ago in Inventory updated 1 month ago 1

I want to check if the character has equipped weapon and draw that weapon out.

How can I draw the current equipped weapon? Or how can I identify the item by script?

Unity version:
2019.4.9f1
Game Creator version:
latest

In detail, I'm trying to check what weapon I'm equipping, and then draw the weapon after switching weapon.

E.G: switch from rifle to pistol, the character should know which pistol I have equipped.