Can somone give me a quick function to no collide vehicles?
Thanks for any help.
[url]http://wiki.garrysmod.com/page/GM/ShouldCollide[/url]
Use that and check to see if both entities are vehicles, then return false.
[EDITLINE]-[/EDITLINE]
Nevermind, my mistake.
i added this to a lua but doesnt seem to be working :/
[CODE]local function ShouldCollideTestHook( ent1, ent2 )
if ( ent1:IsPlayer() and ent2:IsVehicle() ) then
return false
end
end
hook.Add( "ShouldCollide", "ShouldCollideTestHook", ShouldCollideTestHook )[/CODE]
Sorry, you need to Log In to post a reply to this thread.