Hmm....

Try this:
[code=delphi]function TShip.NextFrame: Boolean;
begin
Result := inherited NextFrame;
end;
[/code]

aLevel is the current level for the object your registering. For example, if you are registering a name space, then for all the objects that should go in this name space you pass in that value. Such as this:

[code=delphi]// register name and return an id
n := Script.RegisterNamespace('MyStuff');

// register TMyClassStuff in the 'MyStuff' name space
c := Script.RegisterClassType(n, TMyClassStuff);

// the return value of c can be used to finish register methods and type related to the class
[/code]

Oh, what version of Delphi are you using? If the above does not work I will zip up the distro. I may have made some changes to the interfaces the last few days.