In this pack (including the free demo) there is a Raycast behavior, which detects all the tiles between two points, so that could give you some ideas:
https://luyren.itch.io/luyren-ai-and-combat-packYou'd need to get the XY speeds of your projectile and plot its trajectory over time, the atan2 block could be used for that. You'd loop a number of times equal the range you want to check, and interrupt the loop if it detects any tile at the specified coordinates.
Detecting actors is a bit trickier, as there are no blocks to get actor at coordinates. There might be a code that returns if an object exists at a given coordinate or note, but I don't know what that would be. You could create a system in which each actor that is relevant sends its position to a scene behavior, and you can then query that behavior to see if any actor is within the path you ploted by using a custom block, and go from there.
Edit: alternatively, fire one actor at a very fast speed with continuous collision enabled. If it hits something, it sends back the information to the actor that fired it, and you use that to draw your projectile.