I'd like to make a door (or any prop) that can still detect collisions and give me the Player entity that it collided with. (shouldnt collide or should ignore collisions from world, props, etc.)
Any idea where to start? I've tried ENT.PhysicsCollide, but I'm not sure what to put inside.
Code so far:
[CODE]
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include( 'shared.lua' )
function ENT:Initialize()
self:SetModel( "models/props_c17/door02_double.mdl" )
self:SetCollisionGroup( COLLISION_GROUP_DEBRIS_TRIGGER ) -- No touching, please.
self:SetSolid(SOLID_VPHYSICS)
end
function ENT:Think()
end
[/CODE]
You need to add SetTrigger(true).
This allows the entity to still fire Touch events while not actually colliding.
Sorry, you need to Log In to post a reply to this thread.