How to replace the 'attack' part on Harvest System

Hi, this is a harvest system but to harvest/collect the item, the player has to ‘attack’ or ‘damage’ the object. Anyone knew how to replace or remove it so it didn’t have to use ‘attack’ or ‘damage’?

Hey there @ReinzKing! Depending on the difference in the system, you may not need to change anything. An “attack” is just a name for an action, and the health can just be the number of times you need to pick it to harvest. If you plant to just pick with a single input, you could remove most of this besides the actual harvesting part, and make an interact interface that you can use for not only picking your plants, but interacting with the rest of the world contextually! This video can help you create an interface that you can use for tons of interactions. Though instead of checking overlaps, I’d probably use a line trace or sphere trace for items you need to be looking at. Additionally, here is some documentation on interfaces:

Disclaimer: One or more of these links are unaffiliated with Epic Games. Epic Games is not liable for anything that may occur outside of this Unreal Engine domain. Please exercise your best judgment when following links outside of the forums.

Hey! Thanks a lot for that and what you give me really solve my problem.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.