Programming & Scripting

View unanswered posts | View active topics


Post a new topicPost a reply
Previous topic | Next topic 

User avatar   Beginner BeginnerMember since: 30.05.2012, 20:15Posts: 16Location: England Likes: 0
 

 Post Topic: Changing AI Behaviour
PostPosted 11.07.2012, 12:23 
Hello,

I am currently trying to learn as much as I can about CryEngine AI as I can. One thing that I really want to do is experiment with behaviour. I have created a Zombie AI model and now want to give it its own behaviours. For example, I want to make him faster than normal AI, and perhaps increase the radius in which he can see the player. Maybe even make him play a sound every 10-15 seconds.

I take it I can't do all of that within CryEngine.. or can I? Will I have to learn some C++ or LUA? I'd really appreciate it if someone could advise me on what to do next.

Cheers!

User avatar   Hardcore Modder Hardcore ModderMember since: 11.10.2011, 18:41Posts: 903Location: Germany Likes: 10
 

 Post Topic: Re: Changing AI Behaviour
PostPosted 11.07.2012, 12:43 
Hi,

check the official documentation - its quite comprehensive about AI. You'll read there that AI is controlled via goalpipes and behaviour scripts which are all defined using LUA or XML. So when it comes to AI i think you can do pretty much without the need for C++. Lua/Xml and flow graphs should be enough i guess.

greets,
Oliver
User avatar   Beginner BeginnerMember since: 30.05.2012, 20:15Posts: 16Location: England Likes: 0
 

 Post Topic: Re: Changing AI Behaviour
PostPosted 11.07.2012, 13:16 
Thanks very much buddy! Will get studying that now.
User avatar   Experienced Modder Experienced ModderMember since: 22.04.2012, 15:00Posts: 477 Likes: 39
 

 Post Topic: Re: Changing AI Behaviour
PostPosted 11.07.2012, 22:11 
A great place to start is by just changing the Grunt. Put your own model in there and set your Behavior Selection Tree in his properties.

If you want to modify the speed of him, refer to this thread:
viewtopic.php?f=314&p=1010577

Also, I believe the view radius is already a property in the editor for grunt.