Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
How to make a advance ai enemy that follows and attacks enemy and also avoids to collide with obstacles and can find their way to attack player even the player is in the maize? |
||||
|
I have made multiple AI scripts and also pathfinder scripts. This project includes AI that does that and includes many cool stuff that you may need. https://5v3n.itch.io/coppercube-... Here is step by step tutorial how to use it. https://www.youtube.com/watch?v=... AI script can be modified so you can create your own AI and still use my pathfinder script for it. There is also other user made AI s with pathfinder so use search and find that fits best for your project. |
||||
|
@sven this script works well sometimes enemy get stucked on stairs,how do i fix it.Also,I want that player's camera rotates automatically towards enemy on attacking me like in granny game,How can i do this without coding? |
||||
|
AI can get stuck on stairs: AI collision sphere is not correct size -too small and step height too high so it wont slide over it. To make camera to rotate towards enemy you need to set camera target at the enemy..(dont know if its possible to rotate towards the enemy without script-but you can set target so it looks to enemy (with no rotation but instantly) Because you probably dont want it keep set target on each attack -you should use variable so target will be set only one time at first attack. |
||||
|
hmmm thank u ???? |
|