I'm trying to create a script that casts a ray to a combatant's currently selected target and can't figure out how to get that transform. I'm trying to make sure the combatant can actually see the target.
p.s. will the 2.9 raycast update include this? Or is that already in there? I can't seem to figure out how to make it check for obstacles for a recast attack and figure making my own simple script that sets a variable would probably be the most direct way.