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:
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.
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.