Hello, i need a little help as you all know..
How to detect if a player hit a prop that i have THROWN with the Chair Thrower or in my case edited, The prop gun.
I made it so right mouse click throws/launches a knife,
But when its on the ground and in mid-air, i want it to damage when a player touches it.
The code is [URL="http://pastebin.com/A6tEbg7p"]here[/URL]
Sorry if i hadn't read the wiki correct.
If you have a link, send that
If you know a simple code, reply that.
you can probably just check if theres a prop in a really small range around the player right?
[QUOTE=Pixelazed;45619379]you can probably just check if theres a prop in a really small range around the player right?[/QUOTE]
How?
not sure if this would work:
[CODE]function Touching(ply)
local props = ents.FindInSphere( ply:GetPos(), 1 )
if table.HasValue( props, "prop_physics" ) then
ply:ChatPrint( "yar touching something" )
end
end[/CODE]
[editline]7th August 2014[/editline]
cant test it right now
Alright, can you tell me how to apply it ?
i derped, tried it out and it fucked your development console
[editline]7th August 2014[/editline]
holdon ill try to sort it out for you add me on steam
[QUOTE=Pixelazed;45619598]i derped, tried it out and it fucked your development console
[editline]7th August 2014[/editline]
holdon ill try to sort it out for you add me on steam[/QUOTE]
I added you.
OxYgEnN is the name.
You may find this a little more useful.
[url]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/indexcdb2.html[/url]
[url]http://wiki.garrysmod.com/page/ENTITY/Touch[/url]
[QUOTE=AIX-Who;45619820]You may find this a little more useful.
[url]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/indexcdb2.html[/url]
[url]http://wiki.garrysmod.com/page/ENTITY/Touch[/url][/QUOTE]
Yeah gg you won. xD
Sorry, you need to Log In to post a reply to this thread.