How to create a magnetic property in blueprint

I’m looking to create a game using the platformer project template, where the character you control can manipulate positive and negative charges at the press of a button.

I’m curious how I can manipulate force at the press of a button in blueprint, like Q for Positive charge (pulls objects in), and E for Negative charge (repels objects away). Any pointers?

You can apply force to your physics simulated meshes based on the direction of your player. SUbtract the character location from object location and use that vector to apply some force (maybe after multiplying it with some variable).