I meant from the source code, when the particle collides with another, I wanted to check if the particle it collided with has a certain property
C++
There isn't an inbuilt function for detecting collisions like that but you can very easily write your own, something along the lines of if (TYP(r)&& parts[ID(r)].vx !=0) to give a better idea.
Then you could detect for a special property like .tmp or whatever you want and store it (see how sensor elements do it).
This again is a very basic explaination and will definitely require adjustments as per your need. Feel free to ask for further help.