Try Get Active Order

public bool TryGetActiveOrder(out Order order)

Returns true and outputs the currently active order (index 0 of the Orders queue), if the unit has any orders. Otherwise returns false and outputs default.