xyz I tried this solution, and it worked well when there's one enemy on the field! However, when there is more than one enemy, things get a bit wonky. The second enemy to sense the player draws the same line as the first one rather than drawing its own line that will reach the player. You can see it in this screenshot here:

What might I have to do to get each enemy I instantiate to draw a unique line?
Here's my immediate mesh code if it helps:
`
extends MeshInstance3D
@onready var player = $"../../player" #I'm not using this in the script right now, but it connects to the player in case I need it.
@onready var raycast = $RayCast3D
func _process(delta):
mesh.clear_surfaces()
mesh.surface_begin(Mesh.PRIMITIVE_LINES)
mesh.surface_add_vertex(Vector3(0, 0, 0))
mesh.surface_add_vertex(raycast.target_position)
mesh.surface_end()
`