Hi ya all! I was making my game when suddenly it punched me in the face… I had to make AI for enemy bots here… I made up a 12 row logic brick and found pretty logical what I made up… but here’s my bots go all jak’t’up and screw everything… I dunno wha to do… If there someone interested to see if there’s anything that could be done here’s the blender file
of course right now I’m making the basics ,THEN I’ll make the levels, of course everything is already wrote and drawed on paper.
thks bI already read tha tuts, but it helped me really!
What My bots will do :
Patrol ( I’ll use the nodes concept )
If bot detect player in a certaion ‘n’’ range ----> activate seek ( I’ll find a script related to this somehow)
If bot detect player in front of him or at a certain angle ( I wanna use the radar sensor but it wont work:() ----> edit object Track to player ( he bots is divided in 2 object - the arms and gun - and - the body- th arms are vertex parented to the body - the reason is that I Track to the player the 2 object - the arms are setted up to ‘‘3d’’ but not the body - so the vertexe parenting make their rotation each independent but share the same Loc ) at least that work:yes:
use the ‘‘y’’ ray of an empty parented to the ‘‘arm&gun’’ object - if it detect the player —> shoot ( of course since it alwys track down the player I delayed the ‘‘track to’’ so it will let enought delay to let the player escape - that work too:yes:
So all I need is to put the ‘‘patrol’’ activation and find a way to get the bot seek the player along a complexe environnement…