Download

Weapon Raycasting Problem (Limit Angle of beeing spawned)

Hi,

i experimenting with some Top Down Shooter elements. However i followed this tutorial: https://www.youtube.com/watch?v=vulBtY6R3sw&list=PL4g86nVHyAEfHElk65CqUUu-cJMW60ER5&index=1

Now i am at a point where i have to limit the angle of the traces beeing spawned. Its hard to explain what i exactly mean. Look here:

ingame_example.png

And this is the Raycast function:

d89c4f0b005c04e6e9f711b7c27c8364aa0606a5.png

So the traces getting spawned at a Socket at the Weapons Muzzle. But like i said, i do not want that unrealistic angle. Where and how can i change that? Any help appreciated.

I mean, its ok if i put my PlayerCharacter in the ActorsToIgnore Array. At least i can not shoot my self that way :D. But how do i disable the Bullet Impact Emitter on my Character??