Target props? Is it possible? Here's the code
From: aimsnap.lua
I was playing around with lenny's scripts to learn something about lua and I wanted to target props, instead of npcs.
I tried to replace:
with
And removed:
But sadly it doesn't work so easly, does anyone of you know what can I do to make it work?
Big thank you to anyone reading
Code:
for k, v in pairs(ents.GetAll()) do if v:IsNPC() then table.insert(targets, v) end
I tried to replace:
Code:
for k, v in pairs(ents.GetAll()) do
Code:
for k, v in pairs(props) do
Code:
if v:IsNPC() then
Big thank you to anyone reading

