Simple line trace weapon problem in BP
I have created a weapon blueprint using blueprint. The custom event i created work but the line trace fires in other direction then where i look. Here is an example and the blueprint i use. In the green circle you can see it fires to the right, when i turn 180 degrees it fires left.
I use this BP
I dont know what im diong wrong.
If someone can help me that would be great
asked Mar 03 '15 at 07:39 PM in Blueprint Scripting
Easy mistake to make. Don't multiply the vector. Add it. You have the location of your weapon socket. You calculated the trace (forward 5000 units) but now you have to add it to extend it on top of the location. Multiply will multiply each value in this vector (which exists of 3 floats) by the one of the other vector.
So yea. Just search for + and you should be fine ;)
answered Mar 03 '15 at 08:02 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here