SetUnitDirection(<-partUID <-direction)
Sets the unit containing the part to the direction. Direction would usually be 0 or 1 for a right/left unit.