summaryrefslogtreecommitdiff
path: root/lua/autorun/sv_npc.lua
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2017-08-22 00:07:39 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2017-08-22 00:07:39 -0400
commitd370c6c0f7d9249065bcdb9b2c7b80c3fe6470a6 (patch)
tree31d552f3b4d3e3c1c6a111ad0f1f01c64099591a /lua/autorun/sv_npc.lua
parent0b1d97a5ae72fabc611adb922a247f43b514815e (diff)
downloadartery_editor-d370c6c0f7d9249065bcdb9b2c7b80c3fe6470a6.tar.gz
artery_editor-d370c6c0f7d9249065bcdb9b2c7b80c3fe6470a6.tar.bz2
artery_editor-d370c6c0f7d9249065bcdb9b2c7b80c3fe6470a6.zip
Hotfix for player is not valid error
Diffstat (limited to 'lua/autorun/sv_npc.lua')
-rw-r--r--lua/autorun/sv_npc.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/lua/autorun/sv_npc.lua b/lua/autorun/sv_npc.lua
index 8f346bb..d2d81da 100644
--- a/lua/autorun/sv_npc.lua
+++ b/lua/autorun/sv_npc.lua
@@ -1,13 +1,14 @@
-if CLIENT then return end
-local f = nrequire("concommands.lua")
+do return end
+--local f = nrequire("concommands.lua")
local npcs = {} --Master table of npcs
local autocompletef
+local n = {}
function RegisterNPC(npc)
assert(npc ~= nil, "Attempted to register a nil npc")
assert(npc.Name ~= nil, "Attempted to register an npc without a name")
npcs[npc.Name] = npc
- autocompletef = f.AutocompleteFunction(npcs)
+ --autocompletef = f.AutocompleteFunction(npcs)
end
function CreateNPCByName(npcname, pos)