From 6d9625e0e3e936cbbce110226b37fc96db793fc0 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Mon, 11 Jan 2016 20:01:06 -0500 Subject: Got npc working --- gamemode/npcsystem/aidirector.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gamemode/npcsystem/aidirector.lua') diff --git a/gamemode/npcsystem/aidirector.lua b/gamemode/npcsystem/aidirector.lua index 2f9b7a7..008ad1a 100644 --- a/gamemode/npcsystem/aidirector.lua +++ b/gamemode/npcsystem/aidirector.lua @@ -101,6 +101,11 @@ function SpawnNpcByName(name, position) if(entdata.OnSpawn) then ent.OnSpawn = entdata.OnSpawn end + --[[ + if(entdata.BehaveCycle) then + ent.BehaveCycle = entdata.BehaveCycle + end + ]]-- print("NPC created") ent:Spawn() print("NPC spawned") -- cgit v1.2.3-70-g09d2