Thanks again.
I noticed it wasn't working with the old dll but all is working fine now.
EDIT: Apparently I can't compile the project myself. I get the following error:
[Pascal Error] pstudio_scripting.dpr(72): E2008 Incompatible types
at

[pascal]function TShip.NextFrame: Boolean;
begin
inherited; // Here
end;[/pascal]


I do have one question though. What exactly is the Integer argument 'aLevelId' in TPGScript.RegisterClassType and TPGScript.RegisterHeader and what does the return value mean?