EntityInView with types

Blitz3D Forums/Blitz3D Programming/EntityInView with types

Hi

I agree with sledge, in the way it is, Shipseen only tells you that at least one is seen, but nothing about which or whose are seen.

only for debug purposes:

global strTmp$

rest of your code
if EntityInView( S\SIMAGE, camera ) = True Then
          Shipseen=1
          strTmp$ = strTmp$ + S\SIMAGE + ", "
Else
          shipseen=0
End If

Outside the loop:
debuglog strTmp (or print strTmp or Text x,y,strTmp what ever)

strTmp$ accumulate a list of Ships seen by the camera


Juan