I’m trying to create a custom NPC that extends from base_ai, based on a custom NPC I downloaded for Gmod around version 9.
The reason I want to stray away from Nextbot is that it doesn’t seem too compatible with most existing models, such as citizens and whatnot. Also, I see a lot of people complaining about the lack of functionality.
Now, once I start attempting to use functions like SetHull (basically any NPC-related functions), it’s telling me that the function is nil and doesn’t exist. Which leads me to believe it’s not actually inheriting from base_ai. (yes, I have Base set to “base_ai”).
When I get home from work, I’ll post my existing code.
Now, one thing I did differently–Instead of having a cl_init, init, and shared set of lua files, I just have one file/class named “MyNPCBuddy.lua”. It runs/spawns just fine if I don’t have any NPC-specific function calls.
Do I still need to use the legacy format of the three files?
Edit: I’m not too experienced with Gmod/Lua in particular, but not to programming itself.