Having a different effect based on the terrain the player character is on?

Simple but probably complex question here:

Can you have your player character cast different effect based on the terrain they are standing on?

such as when standing on grass they can cast ability A and when on dirt they cast ability B

an example being when on snow they shoot a snowball and when in the water they shoot a constant stream of water

my idea was to make areas within this area A happens, but I was considering the procedural terrain idea and perhaps if somehow checking the terrain player is on cast A?

I’m hoping someone with some insight as to how that could be done without being heavy on CPU and lowering frames.

Thank you in advance!

(also, hoping to have many different types of terrain - dirt, grass, snow, rock, sand, water(river or by lake), etc…)

In the run animation of the character’s movement, set up an animation notification, then enable ray detection on the ball of the foot to detect the floor material hit, set a number that you can use to select a different attack animation when attacking.

1 Like

I was clearly over thinking this! Thanks you very much! I appreciate it!