Make more use of DefineConsoleMethod

Resubmission of #887 with some fixes.
Yes, ```-1``` is used on scripts for check this. Good idea move ```SimObjectId``` to ```S32``` :)