• NextBot doesn't register as NPC.
    5 replies, posted
On the Stranded gamemode, when you kill something it uses function GM:OnNPCKilled( npc, killer, weapon ), I ran the print(npc:GetClass()) when an npc dies and the nextbot npcs are not showing as actual NPCs...I tried adding the list.set section to the bottom to register it as an NPC to no avail, anyone have any idea how I could get my NextBot zombie to register in their OnKilled system?
You can execute the hook from NEXTBOT:OnKilled [code] function ENt:OnKilled( dmginfo ) hook.Call("OnNPCKilled", GAMEMODE, self, dmginfo:GetAttacker(), dmginfo:GetInflictor() ) end [/code]
Another question about my NextBot...little off topic but you seem smart =p When I do the nav_analyze it makes a 260mb file that takes forever to load up on my server. But when I do the quicksave without the analyze, my bots still seem to work and the file is like 6 mb.. Is there any reason for me to use analyze? Isn't it meant for advanced tactics gmod doesnt even use?
Oh god, what map are you trying to calcuate nav mesh for? It is very much possible that current NextBot bindings are not capable of using all the features of nav_analyze, but its usefulness also depends of how you program your NextBot NPC.
gms_rollinghills_daynight_b1 - My NextBot just sets a target as it's enemy, and runs to it to attack it. And attacks anyone that walks near it during it's travel. It doesn't use crouch/run/stop or any of the other advanced tactics included. [editline]10th November 2013[/editline] Also the nav_generate makes a navmesh for areas un-accessible to players and bots (beyond the maps border)
It makes 260mb file probably because the map is make out of displacements only, just stick with the 6mb one.
Sorry, you need to Log In to post a reply to this thread.