ScriptInstance attribute side effect?

How can I implement OnSetAttribute and OnGetAttribute via angelscript?