Original Post
I have a question regarding registering reference types. I want to register a type that cannot be instantiated by the script. I thought all I had to do is to omit the factory stuff. But then AngelScripts complains that there are no behaviors. What am I doing wrong? Just so that you know what I want to accomplish: I want to pass a reference of an object to the script, call some methods of that object and nothing more. I don't need to create new objects from the script. And if I had to I would call a function in my program that does so. (Do I have to care about the reference counting? I don't quite understand where that is supposed to happen.)
engine->RegisterObjectType("Object", 0, asOBJ_REF); //Ok, but not enough?!