Finding oldest instance of an entity?

Blitz3D Forums/Blitz3D Programming/Finding oldest instance of an entity?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

There is a faster way which is this:

Each time an entity is created increment a variable by 1, each time an entity is destroyed decrement a variable by 1. This variable will then always have the number of entities/type instances whatever that are currently in the game.