Entityclass

Blitz3D Forums/Blitz3D Programming/Entityclass

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.

EntityClass returning integer enumerators would be a lot nicer, in my opinion. String comparisons are sometimes a bit off for me for some reason (I wrote a string comparison function that compares the ASCII-to-byte characters in a string because of it). Anyhow, I agree that EntityClass should return something other than a MAV when encountering a nonexistant entity. All Blitz has to do is cycle through all of its entities and check to see if any of them have the memory address of the one you're looking for- if not, return "None", "Nil", "Null", "", etc..