Ok sorry. I have 2 cameras. one above the model(top view) and one is the character. when running this function, a line would be passed to every single triangle and would check whether there are triangles in the way or not. if there aren't, the camera can see the triangle and it would be colored red. if there are some in the way, the camera cant see it, and the triangle would colored blue or white and some of them might be visible for the camera of the top view.
EDIT:
It just like EntityVisible, but for Entity-Triangle instead of Entity-Entity mode.
EDIT:
It just like EntityVisible, but for Entity-Triangle instead of Entity-Entity mode.