Questions about AI skill casting! plz help me

  1. i have an AI that casts two skills. Right now those two skills are playing in a fixed order. How do I make it so AI casts two skills randomly?

  2. How do I make AI cast its skill to the ground that player is standing?

Would be soo grateful if someone helps thanks :slight_smile:

You could randomise with a weighted boolean:

image

… for a 50/50 chance.

How do I make AI cast its skill to the ground that player is standing?

Many ways. You could take the character location and subtract 90 from Z (default chars are 180 uus). Or, providing there’s a movement component, it generally knows quite a lot about the floor we’re stadning on:

Thank you so much! am a noob so it took some time to make it both work but it worked!! Thank you so much for your kindness :slight_smile:

1 Like