Is this possible?
If so I’d like to know how.
Thanks.
**[Gamemode.ShouldCollide
http://wiki.garrysmod.com/favicon.ico](wiki.garrysmod.com/?title=Gamemode.ShouldCollide)**
[lua]
hook.Add(“ShouldCollide”,“PropStuff”,function(e1,e2)
if (e1==your_prop && e2:IsPlayer()) || (e2==your_prop && e1:IsPlayer()) then return false end
end)
[/lua]
Wow thanks.
[editline]04:47AM[/editline]
And since I’m just starting to learn this, where would I put this?
Anywhere that will get run automatically or is made to run by something else.
This usually means putting it in lua/autorun. The ShouldCollide hook is shared so it’s probably better to put it in there rather than a client/server specific subfolder, although it’d probably work if it’s only Serverside, it just wouldn’t allow clientside prediction of movement.