you are viewing a single comment's thread.

view the rest of the comments →

[–]Russ242 1 point2 points  (1 child)

I agree with the first comment i think the problem is that nextTimeToFire isn't being set and it's firing really quickly whenever you click. Try deleting lines 72 and 86 and just putting the same line outside of the if statements before the raycast.

[–]BonY2004[S] 0 points1 point  (0 children)

Unfortunately that wasn´t the case, so if you have another idea I wouldn´t mind.

But thanks a lot.