Don't think a NEC issue in and of itself but might have OSHA or building codes (local) implications. I can see for reasons of energy conservation utilizing some form of occupancy sensor, but for safety reasons it shouldn't turn off all lighting in space. In addition if this is an exterior dock space utilization of photo control I can see as a potential, again not for all the lights, particularly those used to flood trailer interiors (likely totally seperate system). So a coordination of OS and standard switching of fixtures that would allow for safety and energy conservation would need to be calculated. The dock area would be of particular concern for adequate minimum lighting for safety.
Been in one that as you walk thru the large warehouse lighting level would increase as you go thru various zones and reduce as you exit, sensor zone overlapping was critical to effective work area lighting.
Side note having total motion sensing can help make a nice napping space for the employees.