Starting a counter if player is on a physical material
So for my dissertation project I need to make the game start a counter when a player leaves a gravel track. In this script I am trying to compare the output of LineTraceByChannel to a physical material and if it not equal, then add +1 to an integer thus working like a counter.
This is not working properly as it's counting upwards without the regards whether I am on gravel or not. Please help
Thank you very much!
asked Apr 11 '18 at 01:49 PM in Blueprint Scripting
What are the start and end vectors of your line trace? Are you sure you are shooting the line where you want to shoot?
why are you not pulling off "out hit phys mat". This way you are always hitting something else and due to the current setup it keeps incrementing the integer.
Can you show the rest of the graph?
answered Apr 11 '18 at 02:01 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here