Hello everyone, I would want to make this quick and easy, but I would like to know how to script a player shooting a bullet at the mouse cursor? Basically, when you left click your mouse somewhere in the game, the player will create a game object (prefab, bullet) and shoot it at the mouse cursor. However I'm having trouble adding somewhat a force or something to the bullet and getting the mouse cursor position. Any help?
ALSO (edit): I'm also having a bit of trouble, I have triggers that makes the player do a death script and made them move. However, if the trigger touches the player, the player doesn't affected by the trigger at all if it stays there. Is there another way to do this?