EntityInView with types

Blitz3D Forums/Blitz3D Programming/EntityInView with types

Spriteman,

Just remember that a type is like a set of properties for every instance of any object you like. So obviously when you were setting a variable earlier in this thread, that variable was always set using the last tpe object instance.

As sledge and co said and provided nice examples, ou need every object to maintain its own (can I be seen) flag. not one generic variable.
The example shown above is only using a generci variable to keep shipseen set to 1 if any of the ships even more than one is seen. I am not really undertsanding what your mission is with the code, but it does seem an odd way of doing things currently.

Also keep in mind that you can use handle and object along with types to get exact reference to any object direcltly, without having to run trhough each instance every time.

IPete2.