Hi Justin,
Two things. First, I'm having an issue with item pickups that use button down. What's happening is that if my player walks by one item that is collectable but doesn't collect it, when they walk by a second collectable item they can not interact with it. I have modifed the demo scene (click to dl) to show this. On start there is a knife and a gun, if you walk up to one you can click on it and collect it and then walk to the other item and click on it and collect it. However, if you walk to the gun and do not collect it and then walk to the knife you can not collect the knife. If you walk back to the gun and collect it you can then walk to the knife to collect it.
Second question is more directional. I am hoping to make a modified pickup ability that detects if an item is consumable (i.e. food that satiates the player) - i need to also make a consume ability. But what I am hoping with my modified pickup ability is that if the item is consumable I would like to give the player two options, either add the item to their inventory or consume it straight away. I imagine that when the ItemPickup is detected the modified PickupItem ability it will check it's ItemType, if its consuamble it would give the option of, something like, "Press A to collect" or "Press B to Consume'. I'm guessing that this will be easily covered with the new inventory system but unfortunately we're using the PUN integration and I need to do this myself. Any suggestion on how to go about this?
Much thanks in advance,
Nathan
Two things. First, I'm having an issue with item pickups that use button down. What's happening is that if my player walks by one item that is collectable but doesn't collect it, when they walk by a second collectable item they can not interact with it. I have modifed the demo scene (click to dl) to show this. On start there is a knife and a gun, if you walk up to one you can click on it and collect it and then walk to the other item and click on it and collect it. However, if you walk to the gun and do not collect it and then walk to the knife you can not collect the knife. If you walk back to the gun and collect it you can then walk to the knife to collect it.
Second question is more directional. I am hoping to make a modified pickup ability that detects if an item is consumable (i.e. food that satiates the player) - i need to also make a consume ability. But what I am hoping with my modified pickup ability is that if the item is consumable I would like to give the player two options, either add the item to their inventory or consume it straight away. I imagine that when the ItemPickup is detected the modified PickupItem ability it will check it's ItemType, if its consuamble it would give the option of, something like, "Press A to collect" or "Press B to Consume'. I'm guessing that this will be easily covered with the new inventory system but unfortunately we're using the PUN integration and I need to do this myself. Any suggestion on how to go about this?
Much thanks in advance,
Nathan
Last edited: