Make "on player clicks" world event use dMaterials.