Add force when i press a key,,how to achieve?

hi , i want to know a simple thing how can i add force to another object using my character when i touch them or i press a key…also that force amount added should depend on for how long i pressed that key…and how to set direction of force added ,i mean how i would know that object i added force to will move in what direction…

Hi man ,
You have to build a little counter that misure how much time you hold a key down.

if you have an statick mesh with collision and physics active , you can add impulse to that mesh,
for example, cast a ray in front of your char, and break the hit collision , get the component hitten and add impulse to that.

to know the direction you have to play with vectors, for example , the static mesh of a crate, - actor location
will give you a vector from your character toward the crate.

Use the amount of time to calculate how much force you give to that.