I’m working on a project in Unreal Engine, and I need some help with a mechanic where multiple meshes move in the same direction at the same time when a key is pressed. Here’s what I’m trying to achieve:
I have a few meshes in my scene.
When the player presses a key, all of these meshes should move in the same direction (e.g., forward, backward, left, right).
The movement should happen simultaneously, based on which key is pressed (for example, if the player presses the “W” key, all meshes move forward at once).
Could someone please guide me on how to set this up in Unreal Engine using Blueprints? Any help or pointers would be greatly appreciated!
You’ll probably want to go with an event dispatcher! Here’s a link to the primary ways for actors to communicate, but here’s an excerpt from the beginning of the event dispatcher section:
" Event Dispatchers
Event Dispatchers are a communication method where one Actor triggers an event and other Actors that are listening to that event get notified.
This method requires you to create Event Dispatchers on the working Actor and have your target Actors bind to them. This communication method uses a one-to-many relationship, where a single working Actor triggers the Event Dispatcher for many listening Actors."