Implement collision script instructions (Fixes #1111)