0
Answered

How much can the player still carry?

markusrgb 3 months ago in Inventory updated by Marti (Lead Developer) 3 months ago 1

Hello, everyone,

I have a problem picking up items directly.

that is, I am not using a container in this action because I don't want the player to be able to put items back.

I use a global variable for the value "player can carry maximum". I would like to know if the player can still pick up the item (weight limit). To calculate this I would need to know how much carrying capacity the player has left.

is there an easy way to find out?

thanks a lot

Markus

Unity version:
2019.3.11f1
Game Creator version:
1.1.8
GOOD, I'M SATISFIED

Ok, removing the button for putting items back into the container might be an easy way to prevent the player from putting other items into it. however, the ability to query whether the player is still carrying capacity is an extremely important feature, so i'll open a new topic on this.

thanks :)

Satisfaction mark by markusrgb 3 months ago
Answered

Unfortunately, not without coding. However, you can still use a Container. if you don't want the player to be able to put items back, simply create a custom skin (duplicate the Container UI prefab) and remove the button to put items inside the container.