Abilities & Directional Targeting Only Hitting Fixed Point On Level 2

So, I’ve got another strange one:

I take my abilities down to level two (the super mega splash and fire spray) and attempt to target with them, but they don’t work. The directional targeting sends fireballs through the map out to a fixed point in the void. The summoning circle also spawns out in the void somewhere instead of in the level.

Everything works fine on level one.

Any tips?

Cheers,
Mark.

Well, my first instinct is to say that Camera.main is returning the wrong camera (or that you don’t have a camera tagged Main in the scene), but you’d be telling me about how you can’t move anywhere no matter where you click if that were the case…

Then I noticed the other parameter in our Raycast in both DelayedClickTargeting and DirectionalTargeting. The LayerMask.
Make sure your terrain is tagged with the layermask used in the DirectionTargeting and DelayedClickTargeting Strategies

1 Like

That was it! I completely forgot about the layer mask. Thank you again!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms