I want to do smth simple: if the character is overlapping the collision sphere of my item and I press E key, simply destroy the actor.I did the blueprints in the items event graph but it doesn
t work.Is this the wrong way ?If so,how can I solve it?
Put a Print String directly after InputActionPickup. Does it print when you activate it? Also, the link you included takes me to a strange place; intended?
Im sorry for the misunderstanding, it
s not a link, I forgot to put a space after works.
.
It doesn`t print string anything
Haha. Knowing internet, I could have been taken to a much worse place by accident ;p
It doesn`t print string anything
Is the input set up?
Assuming it is, you’d have to enable input for your items, too:
However, I believe it would be more logical to implement this logic in the character directly. If you implement it in the item, all items will have to deal with that logic.
Wouldn’t it be more sensible to have the character sense nearby items and handle picking them up. Saves you duplicating code since you’ll have more than 1 object type to pick up, surely!
Thank you for your help.Your print string idea showed me that I have to make a Event begin play—enable input in the actor`s event graph.