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,
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,