Did garry break ents.FindByClass() in the latest update? doing
lua_run_cl PrintTable(ents.FindByClass("npc_*"))
gives no errors but prints nothing. Even when there are npc's on the map (duh).
For loops that use this also now do not work for me. Is it just me or what.
Having "npc_*" never worked on the client. Use [lua]for _,npc in pairs(ents.GetAll()) do
if npc:IsNPC() then
--Code
end
end[/lua]
Oh, thanks. I didn't know "npc_*" was server side only, no wonder.
Sorry, you need to Log In to post a reply to this thread.