That can't possibly be right:
if KeyHit(KEY_E)==1 then
pick=CameraPick(camera,Vec3(GraphicsWidth()/2,GraphicsHeight()/2,2.0),0,0)
if pick~=nil then
repeat
if pick.entity:GetClass()==ENTITY_MODEL then
break
end
pick.entity=pick.entity.parent
until pick.entity==nil
if pick.entity~=nil then
pick.entity:SendMessage("use",controller,0)
end
end
end
pick.entity:SendMessage("use",controller,0)
You are clearly passing message,entity (Extra?), and 0 (delay?)
I have tried passing message,table,integer message,integer,table message,integer,integer
None of the combos work. THe message goes through, but on ReceiveMessage extra is always nil, can't be made a number, or something else with it has messed up.