Distinguishing between reconfigurable intelligent surface (RIS) assisted paths and non-line-of-sight (NLOS) paths is a fundamental problem for RIS-assisted integrated sensing and communication. In this work, we propose a pattern alternation scheme for the RIS response that uses part of the RIS as a dynamic part to modulate the estimated channel power, which can considerably help the user equipments (UEs) to identify the RIS-assisted paths. Under such a dynamic setup, we formulate the detection framework for a single UE, where we develop a statistical model of the estimated channel power, allowing us to analytically evaluate the performance of the system. We investigate our method under two critical factors: the number of RIS elements allocated for the dynamic part and the allocation of RIS elements among different users. Simulation results verify the accuracy of our analysis.