Is there a way to spawn an npc with a vgui button?
There are console commands to spawn NPC’s, so it would probably be possible.
Can you tell me what the console command is please?
Esc -> options -> keyboard -> Advanced -> Enable Developer Console (`)!
And hit Ok, then press ` to open console.
Thanks anyways. I found it though. If anyone wants to know what it is, its
[lua] Button1.DoClick = function()
Now figure out the 2 flaws in your code. Ready? GO!
- forgot the “)”
- … haven’t seen it yet will keep looking it over
[lua]RunConsoleCommand(command, arg1, arg2, arg3)[/lua]
Oh yes I forgot args, I’m not very good with them so I tend to forget.