Forums Gallery Downloads LOGIN |REGISTER

AI avoiding local player

Gameplay Setup, SP/MP Logic, Audio Setup, AI Logic, Entity Usage, etc.


 

User avatar RomainBarthelemy
Just getting started
Just getting started
 
Posts: 2
Member since: 10.04.2012, 10:58
Likes: 0

AI avoiding local player

Postby RomainBarthelemy » 11.07.2012, 15:22

Hi everyone,

I'm quite new to CryEngine3. I'm currently trying to have the AI avoid the local player, as if there was some kind of forbidden area around him, so he can walk through a crowd of NPCs without them running into him every second. Do you have any idea how to do this?

Thanks a lot,

Romain
User avatar shamnadhoh
Just getting started
Just getting started
 
Posts: 29
Member since: 22.08.2011, 14:56
Likes: 0

Re: AI avoiding local player

Postby shamnadhoh » 11.07.2012, 19:44

Try with AI--> Forbidden area; You xan found it in the Rollup Bar
User avatar RomainBarthelemy
Just getting started
Just getting started
 
Posts: 2
Member since: 10.04.2012, 10:58
Likes: 0

Re: AI avoiding local player

Postby RomainBarthelemy » 12.07.2012, 11:21

Thanks,
I already use forbidden areas, but they're stuck to the position you put them in the editor (you have to triangulate paths every time you change them). What I need is a kind of dynamic "forbidden area" which is attached to the player's position. Thus he can move through a crowd, and AI walk around him, avoid him, but it doesn't change their final destination.
User avatar faith113
Regular Dev
Regular Dev
 
Posts: 485
Member since: 22.04.2012, 15:00
Likes: 41

Re: AI avoiding local player

Postby faith113 » 30.08.2012, 00:04

I would also like to know how this could be accomplished, did you ever find any solutions?
User avatar JasoLon
Intern Dev
Intern Dev
 
Posts: 101
Member since: 23.02.2012, 02:47
Likes: 0

Re: AI avoiding local player

Postby JasoLon » 28.09.2012, 04:43

Maybe you can set up a parameter check on the AI so that if the player is within range they will go to a randomly generated spot.
User avatar Spify
Regular Dev
Regular Dev
 
Posts: 489
Member since: 20.07.2011, 10:22
Location: Frankfurt am Main
Likes: 5

Re: AI avoiding local player

Postby Spify » 04.10.2012, 10:28

Try this.
Attachments
Ignoreplayer.JPG


 
Connect and collaborate with CRYENGINE developers in the official Forums.
Visit the Gallery to share what you have created and be inspired by what others are creating with CRYENGINE.
Community