Some bugfixes, SetAngle script function