gravity directional weapons (help)

I am pretty new to unreal engine 4, i am trying to make it so that when i shoot the gun in the first person demo project it will change the gravity to the direction that i shot at. i have been trying to look up tutorials to figure it out but am having trouble finding anything, i am not sure if this topic is supposed to be in this part of the forums. any help would be appreciated. thanks