ent.Create("prop_physics") - No collision?

Hello guys, I’m spawning a prop_physics via a script (serverside of course) and no matter what I’ve tried so far. It just won’t bloody collide with me (I can’t stand on it etc.)

[LUA]local spawn = ents.Create(“prop_physics”)
spawn:SetPos(Vector(-4583.507324, -5970.015625, 3885.273438))
spawn:SetModel(“models/hunter/plates/plate8x8.mdl”)
spawn:SetCollisionGroup(COLLISION_GROUP_PLAYER)
spawn:Spawn()
local physprop = spawn:GetPhysicsObject()
if physprop:IsValid() then
physprop:EnableMotion(false)
physprop:Sleep()
end[/LUA]
(I’ve tried SEVERAL collision groups, I don’t really do much entity creation so I’m not fully informed on how simple of a fix this is.)


self:SetCollisionGroup( COLLISION_GROUP_INTERACTIVE_DEBRIS );

I’ve tried that, but never mind I have fixed the problem. Apparently making the prop spawn via a function that is ran in GM:Initialize isn’t good, and doesn’t work… Whoops!