Does anyone know of a script that lets my enemies punch and kick, instead of shooting?
Anyone???
first you have to check if the player is in the range of your enemy you can do this with a collider or getting the distance between enemy/target.
then you have the choice
you can run a random if he points on “punch”
play the animation punch and if target still in range hit him.
OR you write a logic behind what is going on like “if target hp > 5 then kick else punch” or something like that.
I would do this with a state machine anyway.
So you have full control over the AI what will come after a punch fE.
well if you’ve ever played halo. i want a script sort of like the flood monster that have hands and feet
use random they have a really great ai that depends on scripts + player behaviors in this case I would recommend you try random at first this should solve all problems until you have all the other stuff running
do you have a script i can use?
In the 3D Platform tutorial, there is an enemy who punches the player with a rod. You may have a look.
i looked there already but couldn’t find the script