Page 1 of 1

AI example?

Posted: 2017-06-22, 10:20
by arfur9
I was wondering if anyone had done an AI script/level example

Re: AI example?

Posted: 2017-06-22, 21:01
by Carsten
Have you had a look at the "company bots" (Trinity following the player) in the TechDemo map?

These are very simple examples of AI. The "I" in "AI" is certainly exaggerated, but at least it shows the basics how AIs can be implemented. ;-)

Btw., I just realize that the "company bots" in the TechDemo map are the only ones that we have. If you want me to, I can add another example to one of the smaller maps where it would be easier accessible.

Re: AI example?

Posted: 2017-06-23, 10:40
by arfur9
I never noticed her following me! But there is so much missing in the techdemo, doors, weapons I don't look at it much

A smaller example would be great :)

Re: AI example?

Posted: 2017-06-24, 10:18
by Carsten
Ok, I'll make one today or tomorrow!

Re: AI example?

Posted: 2017-06-24, 20:32
by arfur9
cool, thanks :)

Re: AI example?

Posted: 2017-06-26, 10:47
by Carsten
I added an example bot to ReNoEcho yesterday, please see the latest commit in master.

Unfortunately, the script needs a review, as it ignores the settings in the entity's components and overrides them with its own. That used to be on purpose, as the script actually computes the values e.g. for the lantern, but in a future review, more flexibility is needed...

Still, it should show the basics of controlling a non-player character.

Re: AI example?

Posted: 2017-06-26, 15:35
by arfur9
Thanks, I'm having a little bit of a play
I reduced the distance to about 100 and he follows close enough to get onto lifts and he has no problem moving on the next level.. funny but true GameGuru can only do stairs with waypoints also npc can't handle bridges.. our little guy has no problems..
He can get stuck but if the distance is close enough for his line of sight he does ok