Both images are identical code. This looks like it should work. Assuming that you are using the correct material indexes for the mesh.
What exactly do you expect to happen, and what does happen?
Are you sure the interact function is being called?
Both images are identical code. This looks like it should work. Assuming that you are using the correct material indexes for the mesh.
What exactly do you expect to happen, and what does happen?
Are you sure the interact function is being called?