oh this is pissing me off their is so little good documentation for gmod 13 any ways the nextbot function for "use" is shit and wont fire apparently its a bug... i just want a prop or something i can walk up to and hit e on to trigger a function i supose this just not the time to shift my focus from python to lua for gmod
[QUOTE=fenderex;42364849]oh this is pissing me off their is so little good documentation for gmod 13 any ways the nextbot function for "use" is shit and wont fire apparently its a bug... i just want a prop or something i can walk up to and hit e on to trigger a function i supose this just not the time to shift my focus from python to lua for gmod[/QUOTE]
Do you want a prop or a nextbot? I do believe USE is broken on nextbots.
For a a prop entity, you would have a function like this inside the entities init.lua
[lua]
function ENT:Use(ply,activator)
print( "Ent was used by", ply ) --run your function here
end
[/lua]
Sorry, you need to Log In to post a reply to this thread.