You need to convert it to C-Script to make it work with A6.2 as the code above is, as Larry said, Lite-C.