Hello
I cannot seem to get collision event to work. I would only need to get sound when two entities collides. Below code for creating entities and initiliazing physics

CTREATING ENTITIES;
ent1 = ent_create("ent1.mdl",TempBulletPos,BulletAction);
set(ent1,SHADOW);
ent1.material = Ball_Material;
pXent_settype(ent1,PH_RIGID,PH_SPHERE);
pXent_setmass(ent1,30);
pXent_setfriction(ent1,10);
pXent_setelasticity(ent1,50);
pXent_setdamping(ent1,10,0);
pXent_setccdskeleton(ent1,vector(0,0,0),1);
wait(1);
ent2 = ent_create("ent2.mdl",TempBulletPos,BulletAction);
set(ent2,SHADOW);
ent1.material = Ball_Material;
pXent_settype(ent2,PH_RIGID,PH_SPHERE);
pXent_setmass(ent2,30);
pXent_setfriction(ent2,10);
pXent_setelasticity(ent2,50);
pXent_setdamping(ent2,10,0);
pXent_setccdskeleton(ent2,vector(0,0,0),1);
wait(1);

pXent_setcollisionflag(ent1,ent2,NX_NOTIFY_ON_START_TOUCH);
ent1.event = MakeSound;



INITILIACING PHYSICS:
physX_open();
pX_setsteprate(60,8,NX_TIMESTEP_FIXED);
pX_setunit(1/60);
ph_fps_max_lock=70;
ph_check_distance=5;
pX_setautodisable(5,5);
pX_setgravity(vector(0,0,0));
pX_setccd(1);
wait(1);

Collision works well with level when using following:

pXent_setcollisionflag(ent1,NULL,NX_NOTIFY_ON_START_TOUCH);

But not between ent1 and ent2. Does anyone know what is wrong or is there somewhere example of how to make this work?

thanks in advance.