Hey! How to disable weapons collide in relation to each other?
I try:
function SWEP:Initialize()
self:SetCollisionGroup(COLLISION_GROUP_WEAPON)
end
Thx
Hey! How to disable weapons collide in relation to each other?
I try:
function SWEP:Initialize()
self:SetCollisionGroup(COLLISION_GROUP_WEAPON)
end
Thx
You can do COLLISION_GROUP_DEBRIS and then check with FindInSphere to check players
1
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).
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
.