• ShouldCollide hook not working?
    1 replies, posted
I've been trying to use ShouldCollide but for some reason it isn't working Here's my code: hook.Add("PlayerSpawnedProp", "SetPropOwner", function(ply, mdl, ent) if not IsValid(ent.PropOwner) then ent.PropOwner = ply:Nick() ent:SetCustomCollisionCheck(true) end end) hook.Add("ShouldCollide", "RemovePropCollision", function(ent1, ent2) if IsValid(ent1.PropOwner) and IsValid(ent2.PropOwner) then if not ent1.PropOwner == ent2.PropOwner then return false end end end) The hook ShouldCollide isn't getting called, how do I fix this?
You're storing the player name when you should just use the player object.
Sorry, you need to Log In to post a reply to this thread.