How do I make enemy AI logic?
Want to make a puppet or enemy that attacks my character with the attack animations I have created. Need help with this.
-
Have you tried yet...? Try using the built in enemy tag and also mess around with the health manager in the code.
-
Hi,
In the puppet control there is a page for following,
If you set it to follow a tag called "Player" then put a key on you called "Player" Then the puppet will follow you.
Then if you have a trigger zone on the enemy also looking for a tag called "Player" which you can hook up to your attack animation.
That means when they get close they will attack.
Lastly use the health modifier gadget set to look for friend and a zone shape and negative health to hurt you.
Hope this helps
John
請登入寫評論。