Func portal orientation

It adjusts the rotation of a portal to match a specified angle.