another entityvisible question

Blitz3D Forums/Blitz3D Programming/another entityvisible question

okay, thanks for the info guys....however I am still having problems and beginning to figure out alternatives...unsuccessfully. I have loaded a cube onto my level and scaled it up so it will completely obscure my player if he is behind it. But is still doesnt stop the enemies doing what they shouldnt.

It is not an animated mesh so I cannot find the child.
(As a side note if I made it an animated mesh with a single joint then my player to level collisions stopped working completely).

I must be doing something wrong but my code is so simple I cant figure out where. For example

if entityvisible (enemy,man)=true then
text 10,10,"HIT"
else
text 10,10,"NOHIT"
endif