Object Problem

Blitz3D Forums/Blitz3D Programming/Object Problem

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.

Sainfohi already stated what the problem is:

Your problem is that your loading a mesh that doesn't exist, or you've forget to Global one of the variables that pointers to yur entity.


You stated:
But when "InitLevel" calls the function "InitLevelGuns," I recive an error "Entity does not exist."

Well, if that's your error message then one of your entities is not being created. I don't see how this has anything to do with the Object command.

Do yourself a favor and use the Stop command (during Debug mode) and then step through your code line by line to see which entity doesn't exist.

Once you find out which one doesn't exist, then go back and figure out why.