I’m trying to learn how to script an snpc, given I’ve failed to find anyone willing or able to apply to the task.
I decided I’d at least get some momentum going by trying the basic, bare-bones code for an snpc provided here:
I pasted the code into the three separate lua files inside a folder I named for the snpc, as directed. The page says that to spawn it, I need only type “ent_create” space, and then the folder name to make it. All I receive in return is the message “attempted to create unknown entity type.” I ensured to put the folder and files in both the username and common gmod folders to be sure, but nothing happens.
I suspect the code is out of date somehow, but I would never know, nor how to fix it. I planned to start with the basic code, and then tweak, modify the code as I go and fan-out from there, but without something that works to start with, I’m truly alone, and the information to do this is all but nonexistent.
And I would start with someone else’s snpc code, but gmod13 addons are all encrypted, and even if I could I don’t want to be accused of stealing someone’s code.
Can anyone help, or at least point me in a suitable direction?