Posted May 17, 2023 by will2781
This is a new version of the knife throwing script
When a knife is thrown the number of knives decreases.
If the number reaches 0 they can no longer throw knives
A line renderer is now used to visualise the direction that the knife will go in.
The line renderer will not travel through walls as it uses a raycast to set the second point of the line renderer.
If the raycast hits a wall the line renderer is drawn to the hit.position.