aboutsummaryrefslogtreecommitdiff
path: root/gamemode/ents/art_npc/sh_art_npc.lua
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2018-11-03 18:23:45 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2018-11-03 18:23:45 -0400
commit28affa22541b9ef251707793f6b1c1a26d663592 (patch)
tree622754894d75c74dc5e8516ccf184ad4bf328fef /gamemode/ents/art_npc/sh_art_npc.lua
parentc639e7c7c6ab1595fdce39f56312e3d6a886bbe8 (diff)
downloadartery-28affa22541b9ef251707793f6b1c1a26d663592.tar.gz
artery-28affa22541b9ef251707793f6b1c1a26d663592.tar.bz2
artery-28affa22541b9ef251707793f6b1c1a26d663592.zip
Started on new npc system
Started work on the new npc system
Diffstat (limited to 'gamemode/ents/art_npc/sh_art_npc.lua')
-rw-r--r--gamemode/ents/art_npc/sh_art_npc.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/gamemode/ents/art_npc/sh_art_npc.lua b/gamemode/ents/art_npc/sh_art_npc.lua
new file mode 100644
index 0000000..c7d549c
--- /dev/null
+++ b/gamemode/ents/art_npc/sh_art_npc.lua
@@ -0,0 +1,14 @@
+local ENT = {}
+local base = nrequire("sh_basenpc.lua")
+
+ENT.Type = "anim"
+ENT.Base = "base_nextbot"
+
+local ent_m = {__index = base}
+
+hook.Add("artery_core_loaded","load_ent_art_npc",function()
+ print("At the time artery_core_loaded is called, ENT is", ENT)
+ setmetatable(ENT,ent_m)
+end)
+
+return ENT