Hey! How to disable weapons collide in relation to each other?
I try:
[CODE]
function SWEP:Initialize()
self:SetCollisionGroup(COLLISION_GROUP_WEAPON)
end
[/CODE]
Thx
You can do COLLISION_GROUP_DEBRIS and then check with FindInSphere to check players
1
[QUOTE=gonzalolog;52573747]You can do COLLISION_GROUP_DEBRIS and then check with FindInSphere to check players[/QUOTE]
I need the weapons not to get stuck in each other. When a player dies, all weapons drop out. And if a player has more than two weapons, then at death they get stuck in each other.
You can use `COLLISION_GROUP_WORLD`. `COLLISION_GROUP_WEAPON` is the default collision group for weapons, which collide with other weapons, vehicles and the world (and props I think).
[QUOTE=G4MB!T;52575617]You can use `COLLISION_GROUP_WORLD`. `COLLISION_GROUP_WEAPON` is the default collision group for weapons, which collide with other weapons, vehicles and the world (and props I think).[/QUOTE]
How will the lua look and where to put it?
Use the code you posted in the OP except replace `COLLISION_GROUP_WEAPON` with `COLLISION_GROUP_WORLD`.
Sorry, you need to Log In to post a reply to this thread.