Hey all,
I was scrolling through the gmod wiki and I notice the player.CreateNextBot function. If you haven't seen the function here is the link to the wiki segment - [url]http://wiki.garrysmod.com/page/player/CreateNextBot[/url]
So far, from my understanding is you can use this to basically create a bot that runs off the nextbot library? ( It's considered a player instead of an entity. )
Has anybody used this? Is it useful at all? What's the difference between just typing bot_add in the console and using this function? If somebody has knowledge on how this works I'm very interested, I've tried fiddling with it but as of currently I'm not quite sure what I should be doing. :)
The difference is written on the page itself.
[quote]
This bot is also a NextBot internally, support for calling NextBot functions on it will come at a later date, complete with access to the vision interface and a way to define your own AI.
[/quote]
Right now this function is an easier way to create a player bot and return the player object right away.
You'll also be able to use pathing functions on the bot as if it was a nextbot at some point.
Makes sense, I came across a thread on facepunch somewhere ( I've already forgotten, whoops ) and I found somebody had made a little companion bot that follows him around.
He posted a pastebin to his code and I'm using this to understand what's goen' on.
[url]http://pastebin.com/mr4598ie[/url]
It's quite useful to understand the basics.
Sorry, you need to Log In to post a reply to this thread.