AI Detecting dead things

I dont know why it would be different. You just tell the detector whether the seen character is dead or not and do the necessary action.

This may involve C++, but how do I get AI To detect anything dead? OR dead bodies specificly. Is it the same way AI detect a player? or is it different?

Just wondering, because one is dead and the other is alive bt thanks for reply