Generate collision events when a key is pressed
Hello, My name is Luis Filipe and I have been working a Top-Down Arena Style hoard mode game for an assignment, it is a C++ project and I am not allowed to use blueprints. I have a PickupActor class that should be added to the players inventory component when the "E" key is pressed. To accomplish that I wanted to have a USphereComponent in my Character class that when I press the "E" key would either activate or call a function that generates the collision events that frame. Since some items may already be inside the the sphere when the "E" key is pressed I can't use the Begin or End overlap events.
One solution I have considered is registering the begin and end overlaps of all pickups by adding and removing their pointers to a map, but that sounds very bad.
Anyone know if there is a way to generate the overlap events this frame for all objects currently overlapping with the Component?
asked Feb 14 '19 at 05:20 PM in Using UE4
Yes the asterisk means it is a pointer to the actor not the actual object. I have fixed it. It turns out you can't have both of these line at the same time:
Thank you very much for your help Thompson13!
Follow this question
Once you sign in you will be able to subscribe for any updates here