EntityInView with types

Blitz3D Forums/Blitz3D Programming/EntityInView with types

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

Thanks so far for your help so far folks. I was a little rusty with Types and have just again had a look into using them.

At the moment I would like to use Entityinview to detect if one of the many type objects (ships) have been seen by the camera. What seems to happen is that it will only detect the last one in the type list. Probably something silly but here is a bit of code,

Function updateships()
For s.ship = Each ship

Do stuff here.

If EntityInView ( SIMAGE,camera )=True then shipseen=1

Next

The question is, Should I place the EntityInView check within the For, next loop as at the moment the last ship in the list is detected but not all the others when they pass in camera view.?

Thanks,